Scripts/Events: Update few Love is in the Air quests & items

Port From (https://github.com/TrinityCore/TrinityCore/commit/a01141c426be517c1d2bd40753b277b453d15ce0)
This commit is contained in:
hondacrx
2022-09-05 22:21:23 -04:00
parent 6b6d6f6b8e
commit ed338e77be
2 changed files with 160 additions and 37 deletions
-35
View File
@@ -725,41 +725,6 @@ namespace Scripts.Spells.Generic
}
}
[Script]
class spell_gen_aura_service_uniform : AuraScript
{
public override bool Validate(SpellInfo spellInfo)
{
return ValidateSpellInfo(SpellIds.ServiceUniform);
}
void OnApply(AuraEffect aurEff, AuraEffectHandleModes mode)
{
// Apply model goblin
Unit target = GetTarget();
if (target.IsTypeId(TypeId.Player))
{
if (target.GetNativeGender() == Gender.Male)
target.SetDisplayId(ModelIds.GoblinMale);
else
target.SetDisplayId(ModelIds.GoblinFemale);
}
}
void OnRemove(AuraEffect aurEff, AuraEffectHandleModes mode)
{
Unit target = GetTarget();
if (target.IsTypeId(TypeId.Player))
target.RestoreDisplayId();
}
public override void Register()
{
AfterEffectApply.Add(new EffectApplyHandler(OnApply, 0, AuraType.Transform, AuraEffectHandleModes.Real));
AfterEffectRemove.Add(new EffectApplyHandler(OnRemove, 0, AuraType.Transform, AuraEffectHandleModes.Real));
}
}
[Script]
class spell_gen_av_drekthar_presence : AuraScript
{