Author: Simple2008
(2010/03/14 20:31) Almost 2 years ago
Small correction for last commit
214
@Override
215
public void onDie()
216
{
217
super.onDie();
218
// TODO probably introduce variable - last attack creature in player AI
219
Player player = this.getOwner();
220
if(lastAttacker instanceof Player && !isEnemy((Player) lastAttacker))
...
223
}
222
224
else
225
226
if(player.getLevel() > 4)
227
player.getCommonData().calculateExpLoss();
228
{{super.onDie();{{