Implemented Basic Creature Scaling
Trainer followup Misc Fixes
This commit is contained in:
@@ -3079,6 +3079,11 @@ namespace Game.Entities
|
||||
packet.Absorbed = (int)log.absorb;
|
||||
packet.Periodic = log.periodicLog;
|
||||
packet.Flags = (int)log.HitInfo;
|
||||
|
||||
SandboxScalingData sandboxScalingData = new SandboxScalingData();
|
||||
if (sandboxScalingData.GenerateDataForUnits(log.attacker, log.target))
|
||||
packet.SandboxScaling.Set(sandboxScalingData);
|
||||
|
||||
SendCombatLogMessage(packet);
|
||||
}
|
||||
|
||||
@@ -3102,6 +3107,12 @@ namespace Game.Entities
|
||||
spellLogEffect.Crit = info.critical;
|
||||
/// @todo: implement debug info
|
||||
|
||||
SandboxScalingData sandboxScalingData = new SandboxScalingData();
|
||||
Unit caster = Global.ObjAccessor.GetUnit(this, aura.GetCasterGUID());
|
||||
if (caster)
|
||||
if (sandboxScalingData.GenerateDataForUnits(caster, this))
|
||||
spellLogEffect.SandboxScaling.Set(sandboxScalingData);
|
||||
|
||||
data.Effects.Add(spellLogEffect);
|
||||
|
||||
SendCombatLogMessage(data);
|
||||
|
||||
Reference in New Issue
Block a user