fix(Core/Spells): Crown Parcel Service Uniform should dismount players (#10654)
- Closes #10652
This commit is contained in:
@@ -459,10 +459,16 @@ class spell_gen_aura_service_uniform : public AuraScript
|
|||||||
if (target->GetTypeId() == TYPEID_PLAYER)
|
if (target->GetTypeId() == TYPEID_PLAYER)
|
||||||
{
|
{
|
||||||
if (target->getGender() == GENDER_MALE)
|
if (target->getGender() == GENDER_MALE)
|
||||||
|
{
|
||||||
target->SetDisplayId(MODEL_GOBLIN_MALE);
|
target->SetDisplayId(MODEL_GOBLIN_MALE);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
target->SetDisplayId(MODEL_GOBLIN_FEMALE);
|
target->SetDisplayId(MODEL_GOBLIN_FEMALE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
target->RemoveAurasByType(SPELL_AURA_MOUNTED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||||
|
|||||||
Reference in New Issue
Block a user