Core/Spells: Changed boss knockback immunity
This commit is contained in:
@@ -16200,7 +16200,7 @@ void Unit::KnockbackFrom(float x, float y, float speedXY, float speedZ)
|
||||
player = (Player*)this;
|
||||
else
|
||||
{
|
||||
player = dynamic_cast<Player*>(GetCharmer());
|
||||
player = GetCharmer()->ToPlayer();
|
||||
if (player && player->m_mover != this)
|
||||
player = NULL;
|
||||
}
|
||||
|
||||
@@ -6074,6 +6074,10 @@ void Spell::EffectKnockBack(SpellEffIndex effIndex)
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
if (Creature* creatureTarget = unitTarget->ToCreature())
|
||||
if (creatureTarget->isWorldBoss() || creatureTarget->IsDungeonBoss())
|
||||
return;
|
||||
|
||||
// Typhoon
|
||||
if (m_spellInfo->SpellFamilyName == SPELLFAMILY_DRUID && m_spellInfo->SpellFamilyFlags[1] & 0x01000000)
|
||||
{
|
||||
|
||||
@@ -3547,12 +3547,6 @@ void SpellMgr::LoadSpellCustomAttr()
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SPELL_EFFECT_KNOCK_BACK:
|
||||
case SPELL_EFFECT_KNOCK_BACK_DEST:
|
||||
if (spellInfo->EffectMechanic[i] == MECHANIC_NONE)
|
||||
spellInfo->EffectMechanic[i] = MECHANIC_KNOCKOUT;
|
||||
++count;
|
||||
break;
|
||||
}
|
||||
|
||||
switch (SpellTargetType[spellInfo->EffectImplicitTargetA[j]])
|
||||
|
||||
Reference in New Issue
Block a user