diff options
author | megamage <none@none> | 2009-04-09 18:48:57 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-09 18:48:57 -0500 |
commit | c88b194e0a33111c7d62128f071cbe733242dd08 (patch) | |
tree | 1b625ce713638d507a53c4843dcfe1ad6f402c7a /src | |
parent | add9a820d2b7aaa572028ed80016f9ed46688498 (diff) |
*Do not allow boss to be dazed by other creatures.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 1af0ebd3bb5..c412be0e30b 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -1547,7 +1547,8 @@ void Unit::DealMeleeDamage(CalcDamageInfo *damageInfo, bool durabilityLoss) // If this is a creature and it attacks from behind it has a probability to daze it's victim if( (damageInfo->hitOutCome==MELEE_HIT_CRIT || damageInfo->hitOutCome==MELEE_HIT_CRUSHING || damageInfo->hitOutCome==MELEE_HIT_NORMAL || damageInfo->hitOutCome==MELEE_HIT_GLANCING) && - GetTypeId() != TYPEID_PLAYER && !((Creature*)this)->GetCharmerOrOwnerGUID() && !pVictim->HasInArc(M_PI, this) ) + GetTypeId() != TYPEID_PLAYER && !((Creature*)this)->GetCharmerOrOwnerGUID() && !pVictim->HasInArc(M_PI, this) + && (pVictim->GetTypeId() == TYPEID_PLAYER || !((Creature*)pVictim)->isWorldBoss())) { // -probability is between 0% and 40% // 20% base chance |