mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[6987] Implemented aura dependent creature target prioritization more correctly
This commit is contained in:
parent
2b7004a0ab
commit
9a411858d0
4 changed files with 13 additions and 2 deletions
|
|
@ -10279,6 +10279,16 @@ Unit* Unit::SelectNearbyTarget() const
|
|||
return *tcIter;
|
||||
}
|
||||
|
||||
bool Unit::hasNegativeAuraWithInterruptFlag(uint32 flag)
|
||||
{
|
||||
for (AuraMap::iterator iter = m_Auras.begin(); iter != m_Auras.end(); ++iter)
|
||||
{
|
||||
if (!iter->second->IsPositive() && iter->second->GetSpellProto()->AuraInterruptFlags & flag)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void Unit::ApplyAttackTimePercentMod( WeaponAttackType att,float val, bool apply )
|
||||
{
|
||||
if(val > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue