mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[11008] Fix wrong threat assignment in threatAssist().
It may have been faster, but unfortunately made the aggressor threatened by his enemies instead of the opposite... In case Player heals himself, this is of course pointless as he chooses target himself, hence it had no real effect at all.
This commit is contained in:
parent
f7d49a4254
commit
279c99bd0f
2 changed files with 2 additions and 5 deletions
|
|
@ -63,10 +63,7 @@ void HostileRefManager::threatAssist(Unit *pVictim, float pThreat, SpellEntry co
|
|||
}
|
||||
}
|
||||
|
||||
if (pVictim == getOwner())
|
||||
ref->addThreat(float (threat) / size); // It is faster to modify the threat durectly if possible
|
||||
else
|
||||
ref->getSource()->addThreat(pVictim, float (threat) / size);
|
||||
ref->getSource()->addThreat(pVictim, float (threat) / size);
|
||||
|
||||
ref = ref->next();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue