* poison condition
* battle target outside screen view
This commit is contained in:
AndreFaramir
2012-03-29 19:36:55 -03:00
parent fd2bc9fb77
commit 8a22b98d01
2 changed files with 9 additions and 3 deletions

View File

@@ -270,7 +270,10 @@ function Battle.removeCreature(creature)
if lastBattleButtonSwitched == battleButtonsByCreaturesList[creatureId] then
lastBattleButtonSwitched = nil
end
if battleButtonsByCreaturesList[creatureId].isTarget then
g_game.cancelAttack()
end
battleButtonsByCreaturesList[creatureId].creature:hideStaticSquare()
battleButtonsByCreaturesList[creatureId]:destroy()
battleButtonsByCreaturesList[creatureId] = nil