Core/Spells: Implemented SPELL_ATTR9_JUMPCHARGE__NO_FACING_CONTROL
Port From (https://github.com/TrinityCore/TrinityCore/commit/486641063e9b88d84e38e4cee3bfc2fb3e0bffc6)
This commit is contained in:
@@ -1989,7 +1989,7 @@ namespace Framework.Constants
|
|||||||
AllowCastWhileChanneling = 0x100000, // Allow Cast While Channeling
|
AllowCastWhileChanneling = 0x100000, // Allow Cast While Channeling
|
||||||
SuppressVisualKitErrors = 0x200000, // Suppress Visual Kit Errors (client only)
|
SuppressVisualKitErrors = 0x200000, // Suppress Visual Kit Errors (client only)
|
||||||
SpellcastOverrideInSpellbook = 0x400000, // Spellcast Override In Spellbook (client only)
|
SpellcastOverrideInSpellbook = 0x400000, // Spellcast Override In Spellbook (client only)
|
||||||
Unk23 = 0x800000, // 23
|
JumpchargeNoFacingControl = 0x800000, // JumpCharge - no facing control
|
||||||
Unk24 = 0x1000000, // 24
|
Unk24 = 0x1000000, // 24
|
||||||
Unk25 = 0x2000000, // 25
|
Unk25 = 0x2000000, // 25
|
||||||
Unk26 = 0x4000000, // 26
|
Unk26 = 0x4000000, // 26
|
||||||
|
|||||||
@@ -540,7 +540,7 @@ namespace Game.Spells
|
|||||||
JumpArrivalCastArgs arrivalCast = new();
|
JumpArrivalCastArgs arrivalCast = new();
|
||||||
arrivalCast.SpellId = effectInfo.TriggerSpell;
|
arrivalCast.SpellId = effectInfo.TriggerSpell;
|
||||||
arrivalCast.Target = unitTarget.GetGUID();
|
arrivalCast.Target = unitTarget.GetGUID();
|
||||||
unitCaster.GetMotionMaster().MoveJump(unitTarget, speedXY, speedZ, EventId.Jump, facing, false, arrivalCast);
|
unitCaster.GetMotionMaster().MoveJump(unitTarget, speedXY, speedZ, EventId.Jump, facing, m_spellInfo.HasAttribute(SpellAttr9.JumpchargeNoFacingControl), arrivalCast);
|
||||||
}
|
}
|
||||||
|
|
||||||
[SpellEffectHandler(SpellEffectName.JumpDest)]
|
[SpellEffectHandler(SpellEffectName.JumpDest)]
|
||||||
@@ -571,7 +571,7 @@ namespace Game.Spells
|
|||||||
|
|
||||||
JumpArrivalCastArgs arrivalCast = new();
|
JumpArrivalCastArgs arrivalCast = new();
|
||||||
arrivalCast.SpellId = effectInfo.TriggerSpell;
|
arrivalCast.SpellId = effectInfo.TriggerSpell;
|
||||||
unitCaster.GetMotionMaster().MoveJump(destTarget, speedXY, speedZ, EventId.Jump, facing, false, arrivalCast);
|
unitCaster.GetMotionMaster().MoveJump(destTarget, speedXY, speedZ, EventId.Jump, facing, m_spellInfo.HasAttribute(SpellAttr9.JumpchargeNoFacingControl), arrivalCast);
|
||||||
}
|
}
|
||||||
|
|
||||||
TeleportToOptions GetTeleportOptions(WorldObject caster, Unit unitTarget, SpellDestination targetDest)
|
TeleportToOptions GetTeleportOptions(WorldObject caster, Unit unitTarget, SpellDestination targetDest)
|
||||||
@@ -5604,7 +5604,7 @@ namespace Game.Spells
|
|||||||
effectExtra.ParabolicCurveId = jumpParams.ParabolicCurveId.Value;
|
effectExtra.ParabolicCurveId = jumpParams.ParabolicCurveId.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
unitCaster.GetMotionMaster().MoveJumpWithGravity(destTarget, speed, jumpParams.JumpGravity, EventId.Jump, facing, false, arrivalCast, effectExtra);
|
unitCaster.GetMotionMaster().MoveJumpWithGravity(destTarget, speed, jumpParams.JumpGravity, EventId.Jump, facing, m_spellInfo.HasAttribute(SpellAttr9.JumpchargeNoFacingControl), arrivalCast, effectExtra);
|
||||||
}
|
}
|
||||||
|
|
||||||
[SpellEffectHandler(SpellEffectName.LearnTransmogSet)]
|
[SpellEffectHandler(SpellEffectName.LearnTransmogSet)]
|
||||||
|
|||||||
Reference in New Issue
Block a user