Core/Auras: Renamed a bunch of unknown or changed spell aura types and implemented some of them
Port From (https://github.com/TrinityCore/TrinityCore/commit/d697882dfbb16242b7aa0b915fb116a14039ac5e)
This commit is contained in:
@@ -735,7 +735,7 @@ namespace Game.Spells
|
||||
{
|
||||
int duration = m_spellInfo.GetMaxDuration();
|
||||
// Calculate duration of periodics affected by haste.
|
||||
if (caster.HasAuraTypeWithAffectMask(AuraType.PeriodicHaste, m_spellInfo) || m_spellInfo.HasAttribute(SpellAttr5.HasteAffectDuration))
|
||||
if (m_spellInfo.HasAttribute(SpellAttr5.HasteAffectDuration))
|
||||
duration = (int)(duration * caster.m_unitData.ModCastingSpeed);
|
||||
|
||||
SetMaxDuration(duration);
|
||||
|
||||
@@ -983,7 +983,6 @@ namespace Game.Spells
|
||||
[AuraEffectHandler(AuraType.ModBlind)]
|
||||
[AuraEffectHandler(AuraType.Unk335)]
|
||||
[AuraEffectHandler(AuraType.MountRestrictions)]
|
||||
[AuraEffectHandler(AuraType.IncreaseSkillGainChance)]
|
||||
[AuraEffectHandler(AuraType.ModResurrectedHealthByGuildMember)]
|
||||
[AuraEffectHandler(AuraType.ModAutoattackDamage)]
|
||||
[AuraEffectHandler(AuraType.ModSpellCooldownByHaste)]
|
||||
@@ -992,16 +991,13 @@ namespace Game.Spells
|
||||
[AuraEffectHandler(AuraType.Unk352)]
|
||||
[AuraEffectHandler(AuraType.ModCamouflage)]
|
||||
[AuraEffectHandler(AuraType.Unk354)]
|
||||
[AuraEffectHandler(AuraType.Unk356)]
|
||||
[AuraEffectHandler(AuraType.EnableBoss1UnitFrame)]
|
||||
[AuraEffectHandler(AuraType.WorgenAlteredForm)]
|
||||
[AuraEffectHandler(AuraType.Unk359)]
|
||||
[AuraEffectHandler(AuraType.ProcTriggerSpellCopy)]
|
||||
[AuraEffectHandler(AuraType.OverrideAutoattackWithMeleeSpell)]
|
||||
[AuraEffectHandler(AuraType.ModNextSpell)]
|
||||
[AuraEffectHandler(AuraType.MaxFarClipPlane)]
|
||||
[AuraEffectHandler(AuraType.EnablePowerBarTimer)]
|
||||
[AuraEffectHandler(AuraType.SetFairFarClip)]
|
||||
void HandleUnused(AuraApplication aurApp, AuraEffectHandleModes mode, bool apply) { }
|
||||
|
||||
/**************************************/
|
||||
|
||||
@@ -4737,9 +4737,12 @@ namespace Game.Spells
|
||||
// check spell focus object
|
||||
if (m_spellInfo.RequiresSpellFocus != 0)
|
||||
{
|
||||
focusObject = SearchSpellFocus();
|
||||
if (!focusObject)
|
||||
return SpellCastResult.RequiresSpellFocus;
|
||||
if (!m_caster.HasAuraTypeWithMiscvalue(AuraType.ProvideSpellFocus, (int)m_spellInfo.RequiresSpellFocus))
|
||||
{
|
||||
focusObject = SearchSpellFocus();
|
||||
if (!focusObject)
|
||||
return SpellCastResult.RequiresSpellFocus;
|
||||
}
|
||||
}
|
||||
|
||||
castResult = SpellCastResult.SpellCastOk;
|
||||
|
||||
Reference in New Issue
Block a user