Cleanups
This commit is contained in:
@@ -966,7 +966,6 @@ namespace Game.Spells
|
|||||||
[AuraEffectHandler(AuraType.Unk46)]
|
[AuraEffectHandler(AuraType.Unk46)]
|
||||||
[AuraEffectHandler(AuraType.Unk48)]
|
[AuraEffectHandler(AuraType.Unk48)]
|
||||||
[AuraEffectHandler(AuraType.PetDamageMulti)]
|
[AuraEffectHandler(AuraType.PetDamageMulti)]
|
||||||
[AuraEffectHandler(AuraType.DetectAmore)]
|
|
||||||
[AuraEffectHandler(AuraType.ModCriticalThreat)]
|
[AuraEffectHandler(AuraType.ModCriticalThreat)]
|
||||||
[AuraEffectHandler(AuraType.ModCooldown)]
|
[AuraEffectHandler(AuraType.ModCooldown)]
|
||||||
[AuraEffectHandler(AuraType.Unk214)]
|
[AuraEffectHandler(AuraType.Unk214)]
|
||||||
|
|||||||
@@ -4043,9 +4043,12 @@ namespace Game.Spells
|
|||||||
if (effectHandleMode == SpellEffectHandleMode.Launch)
|
if (effectHandleMode == SpellEffectHandleMode.Launch)
|
||||||
{
|
{
|
||||||
Position pos = destTarget.GetPosition();
|
Position pos = destTarget.GetPosition();
|
||||||
float angle = m_caster.GetRelativeAngle(pos.posX, pos.posY);
|
if (!m_caster.IsWithinLOS(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ()))
|
||||||
float dist = m_caster.GetDistance(pos);
|
{
|
||||||
pos = m_caster.GetFirstCollisionPosition(dist, angle);
|
float angle = m_caster.GetRelativeAngle(pos.posX, pos.posY);
|
||||||
|
float dist = m_caster.GetDistance(pos);
|
||||||
|
pos = m_caster.GetFirstCollisionPosition(dist, angle);
|
||||||
|
}
|
||||||
|
|
||||||
m_caster.GetMotionMaster().MoveCharge(pos.posX, pos.posY, pos.posZ);
|
m_caster.GetMotionMaster().MoveCharge(pos.posX, pos.posY, pos.posZ);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user