• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

C++ monster getAttackedCreature

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
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:

Similar threads

Back
Top