Scripts/Spells: Implement Summon Sayaad

Port From (https://github.com/TrinityCore/TrinityCore/commit/c7ff9a9083fdb5aab1fe54b16ffd84851f99424d)
This commit is contained in:
hondacrx
2023-05-02 16:32:00 -04:00
parent 5e5e17e23c
commit be0a98f3de
4 changed files with 141 additions and 9 deletions
+5 -3
View File
@@ -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,