Scripts/Spells: Implement Summon Sayaad
Port From (https://github.com/TrinityCore/TrinityCore/commit/c7ff9a9083fdb5aab1fe54b16ffd84851f99424d)
This commit is contained in:
@@ -448,7 +448,7 @@ namespace Game.Entities
|
||||
{
|
||||
return $"{base.GetDebugInfo()}\nOwner: {(GetOwner() ? GetOwner().GetGUID() : "")}";
|
||||
}
|
||||
|
||||
|
||||
public override Unit GetOwner() { return m_owner; }
|
||||
|
||||
public override float GetFollowAngle() { return m_followAngle; }
|
||||
@@ -459,9 +459,10 @@ namespace Game.Entities
|
||||
public bool IsPetImp() { return GetEntry() == (uint)PetEntry.Imp; }
|
||||
public bool IsPetFelhunter() { return GetEntry() == (uint)PetEntry.FelHunter; }
|
||||
public bool IsPetVoidwalker() { return GetEntry() == (uint)PetEntry.VoidWalker; }
|
||||
public bool IsPetSuccubus() { return GetEntry() == (uint)PetEntry.Succubus; }
|
||||
public bool IsPetSayaad() { return GetEntry() == (uint)PetEntry.Succubus || GetEntry() == (uint)PetEntry.Incubus; }
|
||||
public bool IsPetDoomguard() { return GetEntry() == (uint)PetEntry.Doomguard; }
|
||||
public bool IsPetFelguard() { return GetEntry() == (uint)PetEntry.Felguard; }
|
||||
public bool IsWarlockPet() { return IsPetImp() || IsPetFelhunter() || IsPetVoidwalker() || IsPetSayaad() || IsPetDoomguard() || IsPetFelguard(); }
|
||||
|
||||
// Death Knight pets
|
||||
public bool IsPetGhoul() { return GetEntry() == (uint)PetEntry.Ghoul; } // Ghoul may be guardian or pet
|
||||
@@ -598,7 +599,7 @@ namespace Game.Entities
|
||||
SetPowerType(PowerType.Energy);
|
||||
SetFullPower(PowerType.Energy);
|
||||
}
|
||||
else if (IsPetImp() || IsPetFelhunter() || IsPetVoidwalker() || IsPetSuccubus() || IsPetDoomguard() || IsPetFelguard()) // Warlock pets have energy (since 5.x)
|
||||
else if (IsWarlockPet()) // Warlock pets have energy (since 5.x)
|
||||
SetPowerType(PowerType.Energy);
|
||||
else
|
||||
SetPowerType(PowerType.Mana);
|
||||
@@ -1153,6 +1154,7 @@ namespace Game.Entities
|
||||
Succubus = 1863,
|
||||
Doomguard = 18540,
|
||||
Felguard = 30146,
|
||||
Incubus = 184600,
|
||||
|
||||
// Death Knight pets
|
||||
Ghoul = 26125,
|
||||
|
||||
@@ -5328,7 +5328,7 @@ namespace Game.Spells
|
||||
Pet pet = unitCaster.ToPlayer().GetPet();
|
||||
if (pet != null)
|
||||
{
|
||||
pet.CastSpell(pet, 32752, new CastSpellExtraArgs(TriggerCastFlags.FullMask)
|
||||
pet.CastSpell(pet, SharedConst.PetSummoningDisorientation, new CastSpellExtraArgs(TriggerCastFlags.FullMask)
|
||||
.SetOriginalCaster(pet.GetGUID())
|
||||
.SetTriggeringSpell(this));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user