Is 0.16 done yet???
Might've found a bug in the feed spell code:
Code:
def spellFeed(caster,target):
target = target[0]
caster.setDamage(caster.getDamage() - 25, True)
caster.setMadeAttack(False)
if target.getUnitType() == gc.getInfoTypeForString('UNIT_BLOODPET'):
[color="red"]caster.setMoves(caster.getMoves() + 1)[/color]
target.kill(True,0)
The blue highlighted part doesn't do what you might expect it to since moves are internally stored as displayed moves * 60. Also, since adding moves decreases the moves left, moves should instead be subtracted rather than added.
So here's the correct code:
Code:
def spellFeed(caster,target):
target = target[0]
caster.setDamage(caster.getDamage() - 25, True)
caster.setMadeAttack(False)
if target.getUnitType() == gc.getInfoTypeForString('UNIT_BLOODPET'):
[color="blue"]iMoves = caster.getMoves() - gc.getMOVE_DENOMINATOR()
if iMoves < 0:
iMoves = 0
caster.setMoves(iMoves)[/color]
target.kill(True,0)