Updated all spell scripts
This commit is contained in:
@@ -472,7 +472,7 @@ namespace Game.Entities
|
||||
opponent.UpdateCriteria(CriteriaType.WinDuel, 1);
|
||||
|
||||
// Credit for quest Death's Challenge
|
||||
if (GetClass() == Class.Deathknight && opponent.GetQuestStatus(12733) == QuestStatus.Incomplete)
|
||||
if (GetClass() == Class.DeathKnight && opponent.GetQuestStatus(12733) == QuestStatus.Incomplete)
|
||||
opponent.CastSpell(duel.Opponent, 52994, true);
|
||||
|
||||
// Honor points after duel (the winner) - ImpConfig
|
||||
|
||||
@@ -4276,7 +4276,7 @@ namespace Game.Entities
|
||||
// Define the required variables
|
||||
uint charDeleteMinLvl;
|
||||
|
||||
if (characterInfo.ClassId == Class.Deathknight)
|
||||
if (characterInfo.ClassId == Class.DeathKnight)
|
||||
charDeleteMinLvl = WorldConfig.GetUIntValue(WorldCfg.ChardeleteDeathKnightMinLevel);
|
||||
else if (characterInfo.ClassId == Class.DemonHunter)
|
||||
charDeleteMinLvl = WorldConfig.GetUIntValue(WorldCfg.ChardeleteDemonHunterMinLevel);
|
||||
|
||||
@@ -2088,7 +2088,7 @@ namespace Game.Entities
|
||||
ushort maxValue = GetMaxSkillValueForLevel();
|
||||
if (rcInfo.HasFlag(SkillRaceClassInfoFlags.AlwaysMaxValue))
|
||||
skillValue = maxValue;
|
||||
else if (GetClass() == Class.Deathknight)
|
||||
else if (GetClass() == Class.DeathKnight)
|
||||
skillValue = (ushort)Math.Min(Math.Max(1, (GetLevel() - 1) * 5), maxValue);
|
||||
|
||||
SetSkill(skillId, 0, skillValue, maxValue);
|
||||
@@ -2104,7 +2104,7 @@ namespace Game.Entities
|
||||
ushort skillValue = 1;
|
||||
if (rcInfo.HasFlag(SkillRaceClassInfoFlags.AlwaysMaxValue))
|
||||
skillValue = maxValue;
|
||||
else if (GetClass() == Class.Deathknight)
|
||||
else if (GetClass() == Class.DeathKnight)
|
||||
skillValue = (ushort)Math.Min(Math.Max(1, (GetLevel() - 1) * 5), maxValue);
|
||||
|
||||
SetSkill(skillId, 1, skillValue, maxValue);
|
||||
@@ -3394,7 +3394,7 @@ namespace Game.Entities
|
||||
|
||||
public void InitRunes()
|
||||
{
|
||||
if (GetClass() != Class.Deathknight)
|
||||
if (GetClass() != Class.DeathKnight)
|
||||
return;
|
||||
|
||||
uint runeIndex = GetPowerIndex(PowerType.Runes);
|
||||
@@ -3414,7 +3414,7 @@ namespace Game.Entities
|
||||
|
||||
public void UpdateAllRunesRegen()
|
||||
{
|
||||
if (GetClass() != Class.Deathknight)
|
||||
if (GetClass() != Class.DeathKnight)
|
||||
return;
|
||||
|
||||
uint runeIndex = GetPowerIndex(PowerType.Runes);
|
||||
|
||||
@@ -2072,7 +2072,7 @@ namespace Game.Entities
|
||||
}
|
||||
else
|
||||
{
|
||||
if (GetClass() == Class.Deathknight && GetMapId() == 609 && !IsGameMaster() && !HasSpell(50977))
|
||||
if (GetClass() == Class.DeathKnight && GetMapId() == 609 && !IsGameMaster() && !HasSpell(50977))
|
||||
{
|
||||
SendTransferAborted(teleportLocation.Location.GetMapId(), TransferAbortReason.UniqueMessage, 1);
|
||||
return false;
|
||||
@@ -2230,7 +2230,7 @@ namespace Game.Entities
|
||||
if (CliDB.ChrRacesStorage.LookupByKey(race).HasFlag(ChrRacesFlag.IsAlliedRace))
|
||||
startLevel = WorldConfig.GetUIntValue(WorldCfg.StartAlliedRaceLevel);
|
||||
|
||||
if (playerClass == Class.Deathknight)
|
||||
if (playerClass == Class.DeathKnight)
|
||||
{
|
||||
if (race == Race.PandarenAlliance || race == Race.PandarenHorde)
|
||||
startLevel = Math.Max(WorldConfig.GetUIntValue(WorldCfg.StartAlliedRaceLevel), startLevel);
|
||||
@@ -3587,7 +3587,7 @@ namespace Game.Entities
|
||||
Regenerate(power);
|
||||
|
||||
// Runes act as cooldowns, and they don't need to send any data
|
||||
if (GetClass() == Class.Deathknight)
|
||||
if (GetClass() == Class.DeathKnight)
|
||||
{
|
||||
uint regeneratedRunes = 0;
|
||||
int regenIndex = 0;
|
||||
@@ -7393,7 +7393,7 @@ namespace Game.Entities
|
||||
if (node.HasFlag(TaxiNodeFlags.UsePlayerFavoriteMount) && preferredMountDisplay != 0)
|
||||
mount_display_id = preferredMountDisplay;
|
||||
else
|
||||
mount_display_id = ObjectMgr.GetTaxiMountDisplayId(sourcenode, GetTeam(), npc == null || (sourcenode == 315 && GetClass() == Class.Deathknight));
|
||||
mount_display_id = ObjectMgr.GetTaxiMountDisplayId(sourcenode, GetTeam(), npc == null || (sourcenode == 315 && GetClass() == Class.DeathKnight));
|
||||
|
||||
// in spell case allow 0 model
|
||||
if ((mount_display_id == 0 && spellid == 0) || sourcepath == 0)
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Game.Entities
|
||||
m_taximask = new byte[((CliDB.TaxiNodesStorage.GetNumRows() - 1) / (1 * 64) + 1) * 8];
|
||||
|
||||
// class specific initial known nodes
|
||||
if (chrClass == Class.Deathknight)
|
||||
if (chrClass == Class.DeathKnight)
|
||||
{
|
||||
var factionMask = Player.TeamForRace(race) == Team.Horde ? DB2Manager.HordeTaxiNodesMask : DB2Manager.AllianceTaxiNodesMask;
|
||||
m_taximask = new byte[factionMask.Length];
|
||||
|
||||
Reference in New Issue
Block a user