Skip to content
Snippets Groups Projects
Commit 65eef81a authored by Hachem_Muche's avatar Hachem_Muche
Browse files

Fix

parent ece4dfe9
No related branches found
No related tags found
1 merge request!261NPC Object Use
......@@ -394,7 +394,7 @@ newEntity{
radius = function(self, who) return 1 + self.material_level end,
target = function(self, who) return {type="ball", range=self.use_power.range, radius=self.use_power.radius(self, who), selffire=false} end,
requires_target = true,
no_npc_use = function(self, who) return not self:restrictAIUseObject(who) end, -- don't let dumb ai blow up friends
no_npc_use = function(self, who) return self:restrictAIUseObject(who) end, -- don't let dumb ai blow up friends
tactical = { ATTACKAREA = function(who, t, aitarget)
local weapon = who:hasStaffWeapon()
if not weapon or not weapon.combat then return 1 end
......@@ -523,7 +523,7 @@ newEntity{
radius = function(self, who) return 2*self.material_level end,
requires_target = true,
target = function(self, who) return {type="cone", range=self.use_power.range, radius=self.use_power.radius(self, who), selffire=false} end,
no_npc_use = function(self, who) return not self:restrictAIUseObject(who) end, -- don't let dumb ai blow up friends
no_npc_use = function(self, who) return self:restrictAIUseObject(who) end, -- don't let dumb ai blow up friends
tactical = { ATTACKAREA = function(who, t, aitarget)
local weapon = who:hasStaffWeapon()
if not weapon or not weapon.combat then return 1 end
......
......@@ -116,7 +116,7 @@ newEntity{
"T_GLOBAL_CD",
{range = 5,
requires_target = true,
no_npc_use = function(self, who) return not self:restrictAIUseObject(who) end, -- don't let dumb ai hurt friends
no_npc_use = function(self, who) return self:restrictAIUseObject(who) end, -- don't let dumb ai hurt friends
target = function(self, who) return {type="wall", range=self.use_power.range, halflength=3, halfmax_spots=3+1} end,
tactical = {ATTACKAREA = {FIRE = 2}},
damage = function(self, who) return self:getCharmPower(who) end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment