Jump to content

[FIX] Typhoon


Recommended Posts

Posted

Spell does not throw aside a purpose, when are afoot.. Fix below.....

PS: I do not know English, translated a translator. :/

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index f72be80..95bd25a 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -259,7 +259,7 @@ void SpellCastTargets::read( ByteBuffer& data, Unit *caster )
        if(!MaNGOS::IsValidMapCoord(m_destX, m_destY, m_destZ))
            throw ByteBufferException(false, data.rpos(), 0, data.size());

-        if( m_targetMask & TARGET_FLAG_SOURCE_LOCATION )
+        if( m_targetMask & TARGET_FLAG_SOURCE_LOCATION && caster->getClass() != CLASS_DRUID)
        {
            if(data.rpos() + 4 + 4 <= data.size())
            {
@@ -2129,11 +2129,12 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
            break;
        case TARGET_IN_FRONT_OF_CASTER_30:
        {
-            if (m_spellInfo->SpellFamilyName == SPELLFAMILY_GENERIC)
-            FillAreaTargets(targetUnitMap, m_caster->GetPositionX(), m_caster->GetPositionY(), radius, PUSH_IN_FRONT_30, SPELL_TARGETS_AOE_DAMAGE);
+            //Typhoon
+            if (m_spellInfo->SpellFamilyName == SPELLFAMILY_GENERIC || (m_spellInfo->SpellFamilyName == SPELLFAMILY_DRUID && (m_spellInfo->SpellIconID == 2838 || m_spellInfo->SpellIconID == 15)))
+                FillAreaTargets(targetUnitMap,m_caster->GetPositionX(), m_caster->GetPositionY(), radius, PUSH_IN_FRONT_30, SPELL_TARGETS_AOE_DAMAGE);
            else
-                FillAreaTargets(targetUnitMap, m_caster->GetPositionX(), m_caster->GetPositionY(), radius, PUSH_IN_FRONT_90, SPELL_TARGETS_AOE_DAMAGE);
-            break;
+                FillAreaTargets(targetUnitMap, m_caster->GetPositionX(), m_caster->GetPositionY(), radius, PUSH_IN_FRONT, SPELL_TARGETS_AOE_DAMAGE);
+            break;
        }
        case TARGET_DUELVSPLAYER:
        {

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use