Skip to content

Commit

Permalink
Spell: Minor modernization of 44364 based on sniff
Browse files Browse the repository at this point in the history
Might be unused but it is blizzlike
  • Loading branch information
killerwife committed Nov 17, 2023
1 parent 4f262a2 commit ee8ca27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Spells/SpellEffects.cpp
Expand Up @@ -9316,12 +9316,12 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
}
case 44364: // Rock Falcon Primer
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
if (!unitTarget || !unitTarget->IsPlayer())
return;

// Are there anything special with this, a random chance or condition?
// Feeding Rock Falcon
unitTarget->CastSpell(unitTarget, m_spellInfo->CalculateSimpleValue(eff_idx), TRIGGERED_OLD_TRIGGERED, nullptr, nullptr, unitTarget->GetObjectGuid(), m_spellInfo);
unitTarget->CastSpell(nullptr, m_spellInfo->CalculateSimpleValue(eff_idx), TRIGGERED_OLD_TRIGGERED);
return;
}
case 44455: // Character Script Effect Reverse Cast
Expand Down

0 comments on commit ee8ca27

Please sign in to comment.