*Rewritten method for Dalaran Mageguards to determine if they should teleport you.

--HG--
branch : trunk
This commit is contained in:
maximius
2009-11-18 16:24:30 -08:00
parent d03ec103f3
commit 0134b7fee8
3 changed files with 28 additions and 14 deletions
+1 -1
View File
@@ -2529,7 +2529,7 @@ template <class T> T Player::ApplySpellMod(uint32 spellId, SpellModOp op, T &bas
// Charges can be set only for mods with auras
if (!mod->ownerAura)
assert(mod->charges==0);
assert(mod->charges == 0);
if(!IsAffectedBySpellmod(spellInfo,mod,spell))
continue;
+1 -1
View File
@@ -10299,7 +10299,7 @@ void Unit::MeleeDamageBonus(Unit *pVictim, uint32 *pdamage, WeaponAttackType att
// ..done (base at attack power for marked target and base at attack power for creature type)
int32 APbonus = 0;
if(attType == RANGED_ATTACK)
if (attType == RANGED_ATTACK)
{
APbonus += pVictim->GetTotalAuraModifier(SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS);