• 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!

Summon nie zadający obrażeń masterowi

Radd

New Member
Joined
Mar 23, 2012
Messages
31
Reaction score
0
Witam,

Jest jakiś sposób, żeby summony nie zadawały obrażeń osobom, które jest zsummonowały?
 
A od kiedy summony biją swoich panów :O?
 
Z
PHP:
void Creature::drainHealth(Creature* attacker, CombatType_t combatType, int32_t damage)
{
        lastDamageSource = combatType;
        onAttacked();

        changeHealth(-damage);
        if(attacker)
                attacker->onTargetDrainHealth(this, damage);
}
Na
PHP:
void Creature::drainHealth(Creature* attacker, CombatType_t combatType, int32_t damage)
{
		if(attacker->getMaster() && attacker->getMaster() == this)
			return;
			
        lastDamageSource = combatType;
        onAttacked();

        changeHealth(-damage);
        if(attacker)
            attacker->onTargetDrainHealth(this, damage);
}
 
Back
Top