Core/Transmog: Implemented Transmog Illusions + Spelleffect to unlock them

Port From (https://github.com/TrinityCore/TrinityCore/commit/125ada42f6be220a52315d06d61e472a2ba83395)
This commit is contained in:
hondacrx
2022-06-14 23:07:23 -04:00
parent bf4bf6c321
commit 286294a108
6 changed files with 152 additions and 43 deletions
+13
View File
@@ -5655,6 +5655,19 @@ namespace Game.Spells
playerCaster.GetSession().GetBattlePetMgr().GrantBattlePetExperience(unitTarget.GetBattlePetCompanionGUID(), (ushort)damage, BattlePetXpSource.SpellEffect);
}
[SpellEffectHandler(SpellEffectName.LearnTransmogIllusion)]
void EffectLearnTransmogIllusion()
{
if (effectHandleMode != SpellEffectHandleMode.HitTarget)
return;
Player player = unitTarget?.ToPlayer();
if (player == null)
return;
player.GetSession().GetCollectionMgr().AddTransmogIllusion((ushort)effectInfo.MiscValue);
}
}
public class DispelableAura