Skip to content

Commit

Permalink
Update return values on Creature events. (otland#2171)
Browse files Browse the repository at this point in the history
Those functions are expecting a ReturnValue as return not a boolean, this might confuse someone.
  • Loading branch information
Mkalo authored and djarek committed Mar 6, 2017
1 parent a050008 commit 36c6925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/events/scripts/creature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ function Creature:onChangeOutfit(outfit)
end

function Creature:onAreaCombat(tile, isAggressive)
return true
return RETURNVALUE_NOERROR
end

function Creature:onTargetCombat(target)
return true
return RETURNVALUE_NOERROR
end

0 comments on commit 36c6925

Please sign in to comment.