Misc stuff
This commit is contained in:
@@ -685,7 +685,7 @@ namespace Game.Entities
|
||||
return IsInDist(obj, objBoundaryRadius);
|
||||
}
|
||||
|
||||
public bool SetDisableGravity(bool disable, bool updateAnimationTier = true)
|
||||
public bool SetDisableGravity(bool disable, bool updateAnimTier = true)
|
||||
{
|
||||
if (disable == IsGravityDisabled())
|
||||
return false;
|
||||
@@ -718,7 +718,7 @@ namespace Game.Entities
|
||||
SendMessageToSet(packet, true);
|
||||
}
|
||||
|
||||
if (IsCreature() && updateAnimationTier && IsAlive() && !HasUnitState(UnitState.Root) && !ToCreature().GetMovementTemplate().IsRooted())
|
||||
if (IsCreature() && updateAnimTier && IsAlive() && !HasUnitState(UnitState.Root) && !ToCreature().GetMovementTemplate().IsRooted())
|
||||
{
|
||||
if (IsGravityDisabled())
|
||||
SetAnimTier(AnimTier.Fly);
|
||||
@@ -1047,7 +1047,7 @@ namespace Game.Entities
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool SetHover(bool enable, bool updateAnimationTier = true)
|
||||
public bool SetHover(bool enable, bool updateAnimTier = true)
|
||||
{
|
||||
if (enable == HasUnitMovementFlag(MovementFlag.Hover))
|
||||
return false;
|
||||
@@ -1093,7 +1093,7 @@ namespace Game.Entities
|
||||
SendMessageToSet(packet, true);
|
||||
}
|
||||
|
||||
if (IsCreature() && updateAnimationTier && IsAlive() && !HasUnitState(UnitState.Root) && !ToCreature().GetMovementTemplate().IsRooted())
|
||||
if (IsCreature() && updateAnimTier && IsAlive() && !HasUnitState(UnitState.Root) && !ToCreature().GetMovementTemplate().IsRooted())
|
||||
{
|
||||
if (IsGravityDisabled())
|
||||
SetAnimTier(AnimTier.Fly);
|
||||
|
||||
@@ -229,7 +229,7 @@ namespace Game.Networking.Packets
|
||||
data.WriteBit(false); // HasSplineFilter
|
||||
data.WriteBit(moveSpline.spell_effect_extra != null); // HasSpellEffectExtraData
|
||||
bool hasJumpExtraData = data.WriteBit(moveSpline.splineflags.HasFlag(SplineFlag.Parabolic) && (moveSpline.spell_effect_extra == null || moveSpline.effect_start_time != 0));
|
||||
data.WriteBit(moveSpline.anim_tier != null); // HasAnimationTierTransition
|
||||
data.WriteBit(moveSpline.anim_tier != null); // HasAnimTierTransition
|
||||
data.WriteBit(false); // HasUnknown901
|
||||
data.FlushBits();
|
||||
|
||||
|
||||
@@ -3279,7 +3279,8 @@ namespace Game.Entities
|
||||
46008, // Negative Energy
|
||||
45641, // Fire Bloom
|
||||
55665, // Life Drain - Sapphiron (H)
|
||||
28796 // Poison Bolt Volly - Faerlina
|
||||
28796, // Poison Bolt Volly - Faerlina
|
||||
37135 // Domination
|
||||
}, spellInfo =>
|
||||
{
|
||||
spellInfo.MaxAffectedTargets = 5;
|
||||
|
||||
Reference in New Issue
Block a user