Fix build
This commit is contained in:
@@ -1684,6 +1684,7 @@ namespace Game.AI
|
||||
ResetBaseObject();
|
||||
break;
|
||||
case SmartActions.CallScriptReset:
|
||||
SetPhase(0);
|
||||
OnReset();
|
||||
break;
|
||||
case SmartActions.SetRangedMovement:
|
||||
|
||||
@@ -554,10 +554,8 @@ namespace Game.Entities
|
||||
// Hunter trap: Search units which are unfriendly to the trap's owner
|
||||
var checker = new NearestUnfriendlyNoTotemUnitInObjectRangeCheck(this, owner, radius);
|
||||
var searcher = new UnitSearcher(this, checker);
|
||||
Cell.VisitGridObjects(this, searcher, radius);
|
||||
Cell.VisitAllObjects(this, searcher, radius);
|
||||
target = searcher.GetTarget();
|
||||
if (target == null)
|
||||
Cell.VisitWorldObjects(this, searcher, radius);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -2950,7 +2950,7 @@ namespace Game.Entities
|
||||
uint runeCooldown = GetRuneBaseCooldown();
|
||||
while (runes < maxRunes)
|
||||
{
|
||||
SetRuneCooldown((byte)runes, runeCooldown, false);
|
||||
SetRuneCooldown((byte)runes, runeCooldown);
|
||||
++runes;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2850,7 +2850,7 @@ namespace Game.Entities
|
||||
/**********************************/
|
||||
/*************Runes****************/
|
||||
/**********************************/
|
||||
public void SetRuneCooldown(byte index, uint cooldown, bool casted = false)
|
||||
public void SetRuneCooldown(byte index, uint cooldown)
|
||||
{
|
||||
m_runes.Cooldown[index] = cooldown;
|
||||
m_runes.SetRuneState(index, (cooldown == 0) ? true : false);
|
||||
@@ -2890,7 +2890,7 @@ namespace Game.Entities
|
||||
{
|
||||
int maxRunes = GetMaxPower(PowerType.Runes);
|
||||
|
||||
ResyncRunes data = new ResyncRunes(maxRunes);
|
||||
ResyncRunes data = new ResyncRunes();
|
||||
data.Runes.Start = (byte)((1 << maxRunes) - 1);
|
||||
data.Runes.Count = GetRunesState();
|
||||
|
||||
|
||||
@@ -2262,7 +2262,7 @@ namespace Game.Entities
|
||||
SpellHealLog spellHealLog = new SpellHealLog();
|
||||
|
||||
spellHealLog.TargetGUID = healInfo.GetTarget().GetGUID();
|
||||
spellHealLog.CasterGUID = GetGUID();
|
||||
spellHealLog.CasterGUID = healInfo.GetHealer().GetGUID();
|
||||
|
||||
spellHealLog.SpellID = healInfo.GetSpellInfo().Id;
|
||||
spellHealLog.Health = healInfo.GetHeal();
|
||||
|
||||
@@ -4183,7 +4183,7 @@ namespace Game.Spells
|
||||
{
|
||||
if (player.GetRuneCooldown(i) == 0 && runeCost > 0)
|
||||
{
|
||||
player.SetRuneCooldown(i, didHit ? player.GetRuneBaseCooldown() : RuneCooldowns.Miss, true);
|
||||
player.SetRuneCooldown(i, didHit ? player.GetRuneBaseCooldown() : RuneCooldowns.Miss);
|
||||
--runeCost;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user