Scripts/Spells: Fix shaman Earthquake
Port From (https://github.com/TrinityCore/TrinityCore/commit/3e725e1d2521547ea651ef2b4e01c980c9b5ff3e)
This commit is contained in:
+10
-17
@@ -2002,7 +2002,7 @@ namespace Game.Spells
|
||||
{
|
||||
return m_UniqueCorpseTargetInfo.Count(targetInfo => (targetInfo.EffectMask & (1u << (int)effect)) != 0);
|
||||
}
|
||||
|
||||
|
||||
public SpellMissInfo PreprocessSpellHit(Unit unit, TargetInfo hitInfo)
|
||||
{
|
||||
if (unit == null)
|
||||
@@ -7685,22 +7685,15 @@ namespace Game.Spells
|
||||
return m_delayMoment;
|
||||
}
|
||||
|
||||
public WorldObject GetCaster()
|
||||
{
|
||||
return m_caster;
|
||||
}
|
||||
public Unit GetOriginalCaster()
|
||||
{
|
||||
return m_originalCaster;
|
||||
}
|
||||
public SpellInfo GetSpellInfo()
|
||||
{
|
||||
return m_spellInfo;
|
||||
}
|
||||
public List<SpellPowerCost> GetPowerCost()
|
||||
{
|
||||
return m_powerCost;
|
||||
}
|
||||
public WorldObject GetCaster() { return m_caster; }
|
||||
|
||||
public ObjectGuid GetOriginalCasterGUID() { return m_originalCasterGUID; }
|
||||
|
||||
public Unit GetOriginalCaster() { return m_originalCaster; }
|
||||
|
||||
public SpellInfo GetSpellInfo() { return m_spellInfo; }
|
||||
|
||||
public List<SpellPowerCost> GetPowerCost() { return m_powerCost; }
|
||||
|
||||
bool IsDelayableNoMore()
|
||||
{
|
||||
|
||||
@@ -4338,6 +4338,12 @@ namespace Game.Entities
|
||||
});
|
||||
});
|
||||
|
||||
// Earthquake
|
||||
ApplySpellFix(new [] { 61882 }, spellInfo =>
|
||||
{
|
||||
spellInfo.NegativeEffects[2] = true;
|
||||
});
|
||||
|
||||
foreach (var spellInfo in mSpellInfoMap.Values)
|
||||
{
|
||||
// Fix range for trajectory triggered spell
|
||||
|
||||
Reference in New Issue
Block a user