Core/Misc: Added helper function Unit::SetFullPower * Also renamed Unit::getPowerType and Unit::setPowerType to follow style guidelines
This commit is contained in:
@@ -464,7 +464,7 @@ namespace Scripts.Northrend.CrusadersColiseum.TrialOfTheCrusader
|
||||
void FilterTargets(List<WorldObject> targets)
|
||||
{
|
||||
// get a list of players with mana
|
||||
targets.RemoveAll(unit => unit.IsTypeId(TypeId.Player) && unit.ToPlayer().getPowerType() == PowerType.Mana);
|
||||
targets.RemoveAll(unit => unit.IsTypeId(TypeId.Player) && unit.ToPlayer().GetPowerType() == PowerType.Mana);
|
||||
if (targets.Empty())
|
||||
return;
|
||||
|
||||
|
||||
@@ -258,7 +258,7 @@ namespace Scripts.Northrend.FrozenHalls.ForgeOfSouls.Bronjahm
|
||||
{
|
||||
void RecalculateDamage()
|
||||
{
|
||||
if (GetHitUnit().getPowerType() != PowerType.Mana)
|
||||
if (GetHitUnit().GetPowerType() != PowerType.Mana)
|
||||
return;
|
||||
|
||||
int maxDamage = GetCaster().GetMap().IsHeroic() ? 15000 : 10000;
|
||||
|
||||
@@ -225,7 +225,7 @@ namespace Scripts.Northrend.IcecrownCitadel
|
||||
public override void Reset()
|
||||
{
|
||||
_Reset();
|
||||
me.SetPower(PowerType.Mana, me.GetMaxPower(PowerType.Mana));
|
||||
me.SetFullPower(PowerType.Mana);
|
||||
_events.SetPhase(LadyConst.PhaseOne);
|
||||
_waveCounter = 0;
|
||||
_nextVengefulShadeTargetGUID.Clear();
|
||||
|
||||
Reference in New Issue
Block a user