Scripts/GB: some minor cleanups in Throngus' script

This commit is contained in:
Ovalord
2018-01-30 14:48:50 +01:00
parent 22b53c1a1a
commit 86f3c2e749

View File

@@ -214,7 +214,7 @@ class boss_forgemaster_throngus : public CreatureScript
}
}
void PassengerBoarded(Unit* passenger, int8 seatId, bool apply) override
void PassengerBoarded(Unit* passenger, int8 /*seatId*/, bool apply) override
{
if (!me->GetVehicleKit())
return;
@@ -471,15 +471,6 @@ class spell_throngus_personal_phalanx : public SpellScriptLoader
{
PrepareAuraScript(spell_throngus_personal_phalanx_AuraScript);
bool Validate(SpellInfo const* spellInfo) override
{
return ValidateSpellInfo(
{
static_cast<uint32>(spellInfo->Effects[EFFECT_2].BasePoints),
SPELL_FLAMING_SHIELD
});
}
void OnApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
{
if (Unit* caster = GetOwner()->ToUnit())