//-------------------------------------------------------------- // CBounceEffect::isEntityValidTarget() //-------------------------------------------------------------- bool CBounceEffect::isEntityValidTarget(CEntityBase *entity, CEntityBase *actor) const { #ifdef NL_DEBUG nlassert(entity); #endif if (entity->isDead()) return false; if (entity->getId().getType() == RYZOMID::player) return true; if ( entity->getContextualProperty().getValue().attackable() ) return true; CCreature * creature = CreatureManager.getCreature( entity->getId() ); if (creature && actor) { if (creature->checkFactionAttackable( actor->getId() )) { return true; } } return false; } // checkTargetValidity //