GhostWD
I'm in love with the var_dump()
- Joined
- Jan 25, 2009
- Messages
- 185
- Solutions
- 6
- Reaction score
- 29
Hi there!
I've got code like this in monster.cpp
and when i target monster it's ok and monster starts to attack me but if monster get damage by AoE spell then... not
Point is how to make it work even if it get dmg by spell. TFS 0.4
Thank you!
I've got code like this in monster.cpp
C++:
if(isSagaMonster() && valueses == sagaNumber() && creature->getAttackedCreature() == this) ){
return (!creature->isRemoved() && creature->isAttackable() && creature->getZone() != ZONE_PROTECTION
&& canSeeCreature(creature) && creature->getPosition().z == getPosition().z);
}
and when i target monster it's ok and monster starts to attack me but if monster get damage by AoE spell then... not
Point is how to make it work even if it get dmg by spell. TFS 0.4
Thank you!
Last edited: