mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/Auras: Removed unneeded typecasting from aura 54798 handler
This commit is contained in:
@@ -1931,7 +1931,7 @@ void AuraEffect::PeriodicDummyTick(Unit * target, Unit * caster) const
|
||||
}
|
||||
case 54798: // FLAMING Arrow Triggered Effect
|
||||
{
|
||||
if (!target || !target->ToCreature() || !caster->ToCreature()->IsVehicle())
|
||||
if (!target || !target->ToCreature() || !caster->IsVehicle())
|
||||
return;
|
||||
|
||||
Unit *rider = caster->GetVehicleKit()->GetPassenger(0);
|
||||
@@ -1945,10 +1945,10 @@ void AuraEffect::PeriodicDummyTick(Unit * target, Unit * caster) const
|
||||
target->CastSpell(target, 54683, true);
|
||||
|
||||
// Credit Frostworgs
|
||||
if (target->ToCreature()->GetEntry() == 29358)
|
||||
if (target->GetEntry() == 29358)
|
||||
rider->CastSpell(rider, 54896, true);
|
||||
// Credit Frost Giants
|
||||
else if (target->ToCreature()->GetEntry() == 29351)
|
||||
else if (target->GetEntry() == 29351)
|
||||
rider->CastSpell(rider, 54893, true);
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user