Core/Misc: Added helper function Unit::SetFullPower * Also renamed Unit::getPowerType and Unit::setPowerType to follow style guidelines
This commit is contained in:
@@ -268,10 +268,10 @@ namespace Game.Network.Packets
|
||||
MemberStats.MaxHealth = (int)player.GetMaxHealth();
|
||||
|
||||
// Power
|
||||
MemberStats.PowerType = (byte)player.getPowerType();
|
||||
MemberStats.PowerType = (byte)player.GetPowerType();
|
||||
MemberStats.PowerDisplayID = 0;
|
||||
MemberStats.CurrentPower = (ushort)player.GetPower(player.getPowerType());
|
||||
MemberStats.MaxPower = (ushort)player.GetMaxPower(player.getPowerType());
|
||||
MemberStats.CurrentPower = (ushort)player.GetPower(player.GetPowerType());
|
||||
MemberStats.MaxPower = (ushort)player.GetMaxPower(player.GetPowerType());
|
||||
|
||||
// Position
|
||||
MemberStats.ZoneID = (ushort)player.GetZoneId();
|
||||
|
||||
@@ -1101,7 +1101,7 @@ namespace Game.Network.Packets
|
||||
Health = (long)unit.GetHealth();
|
||||
AttackPower = (int)unit.GetTotalAttackPowerValue(unit.GetClass() == Class.Hunter ? WeaponAttackType.RangedAttack : WeaponAttackType.BaseAttack);
|
||||
SpellPower = unit.SpellBaseDamageBonusDone(SpellSchoolMask.Spell);
|
||||
PowerData.Add(new SpellLogPowerData((int)unit.getPowerType(), unit.GetPower(unit.getPowerType()), 0));
|
||||
PowerData.Add(new SpellLogPowerData((int)unit.GetPowerType(), unit.GetPower(unit.GetPowerType()), 0));
|
||||
}
|
||||
|
||||
public void Initialize(Spell spell)
|
||||
@@ -1109,7 +1109,7 @@ namespace Game.Network.Packets
|
||||
Health = (long)spell.GetCaster().GetHealth();
|
||||
AttackPower = (int)spell.GetCaster().GetTotalAttackPowerValue(spell.GetCaster().GetClass() == Class.Hunter ? WeaponAttackType.RangedAttack : WeaponAttackType.BaseAttack);
|
||||
SpellPower = spell.GetCaster().SpellBaseDamageBonusDone(SpellSchoolMask.Spell);
|
||||
PowerType primaryPowerType = spell.GetCaster().getPowerType();
|
||||
PowerType primaryPowerType = spell.GetCaster().GetPowerType();
|
||||
bool primaryPowerAdded = false;
|
||||
foreach (SpellPowerCost cost in spell.GetPowerCost())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user