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