Skip to content

Commit

Permalink
set target when convince creature (#845)
Browse files Browse the repository at this point in the history
Convinced creature should attack same target as master
Fixes #539
  • Loading branch information
ElimarCosta authored Feb 7, 2023
1 parent 473690d commit 38538c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/libs/functions/creature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function Creature:setSummon(monster)
end

summon:setMaster(self, true)
summon:setTarget(self.attackedCreature)
return true
end

Expand Down

0 comments on commit 38538c6

Please sign in to comment.