president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
Hi everyone, I got a problem with onAreaCombat. The code didn't return false then you cast it like the image below
The main idea is if you're in warmode then you can't cast spells what use onAreaCombat.
Thanks.
Code:
function Creature:onAreaCombat(tile, isAggressive)
if self:isPlayer() and self:isInWar() then
return RETURNVALUE_YOUMAYNOTATTACKINWARMODE
end
return true
end
The main idea is if you're in warmode then you can't cast spells what use onAreaCombat.
Thanks.