Jump to content

[patch][8543] Implementing implicit target 60


Guest qsa
 Share

Recommended Posts

What bug does the patch fix? What features does the patch add?

Implementing implicit target 60

TARGET_NARROW_FRONTAL_CONE (60) - 82 spells, some-sort of narrow cone effect (".. cone of water that douses .." , "..enemies in a cone in front of the caster every.." )

tested on : 49867,37459,46236,46158

id    spellname_0
7769    Strafe Jotunheim Building
24933    Cannon
25029    Flamethrower
25030    Shoot Rocket
25145    Merithra's Wake
25149    Arygos's Vengeance
25150    Molten Rain
30418    Chess NPC: Get Adjacent Empty Square (DND)
30469    Nether Beam
32227    Karazhan - Chess NPC Action: Melee Attack: Footman
32228    Karazhan - Chess NPC Action: Melee Attack: Grunt
34154    Cannon
34583    Shoot
34646    Activate Kirin'Var Rune
36951    Shoot
37142    Karazhan - Chess NPC Action: Melee Attack: Conjured Water Elemental
37143    Karazhan - Chess NPC Action: Melee Attack: Conjured Water Elemental
37147    Karazhan - Chess NPC Action: Melee Attack: Human Cleric
37149    Karazhan - Chess NPC Action: Melee Attack: Human Conjurer
37150    Karazhan - Chess NPC Action: Melee Attack: King Llane
37220    Karazhan - Chess NPC Action: Melee Attack: Summoned Daemon
37337    Karazhan - Chess NPC Action: Melee Attack: Orc Necrolyte
37339    Karazhan - Chess NPC Action: Melee Attack: Orc Wolf
37345    Karazhan - Chess NPC Action: Melee Attack: Orc Warlock
37348    Karazhan - Chess NPC Action: Melee Attack: Warchief Blackhand
37406    Heroic Blow
37413    Vicious Strike
37453    Smash
37454    Bite
37459    Holy Lance
37461    Shadow Spear
37498    Stomp
37502    Howl
37918    Arcano-pince
37919    Arcano-dismantle
39583    Change Facing, Left
39686    Flamethrower
39692    Cannon
42143    Headless Horseman - Start Fire Target Test
42436    Drink!
42638    Headless Horseman - Conflagrate Target Test
43210    Target Rifle
43954    Retch!
44037    Tackle, find Target
44804    General Trigger 7 Cone
45761    Shoot Gun
45859    Renew
45968    Plane Spot Taken -> Potential Advance Message
45969    Plane Spot Available -> Potential Message
45970    Plane Check for Available
46158    D.E.H.T.A. Igniter
46236    Close Opening Visual
47563    Freezing Cloud
47593    Freezing Cloud
48623    Shoot Gun
48642    Launch Harpoon
49197    Ruby Arrow
49299    Racer Slam, find Target
49728    Fiery Harpoon
49860    BOTM - Belch Brew - Belch Visual
49862    Potent Stench
49867    BOTM - Vomit Brew - Vomit Visual
49870    Slimed!
50348    Flame Fury
50350    Flame Fury
55138    Frost Blast Find Loc (DND)
56570    Rapid-Fire Harpoon
57495    Deafening Roar
57828    Icecrown Airship - H - Attack - Forward Cannon Fire
57962    Icecrown Airship - A - Attack - 01 Target Check
58112    Icecrown Airship - H - Attack - 01 Target Check
61866    [PH] Squirt Gun
62466    Lightning Charge
62882    HAMMER!
62883    BACKHAND!
62888    COUNTER!
62973    Foam Sword Attack
62991    Bonked!
63317    Flame Breath
64021    Flame Breath
64619    Water Spray
65016    Flame Breath Achievement

I'm not sure about the exact arc used, but based on the visuals it's about 15deg

For which repository revision was the patch created?

8526

Who has been writing this patch? Please include either forum user names or email addresses.

Me

diff --git a/src/game/SharedDefines.h b/src/game/SharedDefines.h
index bf03c45..f0b5b23 100644
--- a/src/game/SharedDefines.h
+++ b/src/game/SharedDefines.h
@@ -1049,6 +1049,7 @@ enum Targets
    TARGET_CURRENT_ENEMY_COORDINATES   = 53,                // set unit coordinates as dest, only 16 target B imlemented
    TARGET_ALL_RAID_AROUND_CASTER      = 56,
    TARGET_SINGLE_FRIEND_2             = 57,
+    TARGET_NARROW_FRONTAL_CONE         = 60,
    TARGET_AREAEFFECT_PARTY_AND_CLASS  = 61,
    TARGET_DUELVSPLAYER_COORDINATES    = 63,
    TARGET_BEHIND_VICTIM               = 65,                // uses in teleport behind spells, caster/target dependent from spell effect
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 78215f9..06fa459 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1743,6 +1743,9 @@ void Spell::SetTargetMap(uint32 effIndex,uint32 targetMode,UnitList& TagUnitMap)
            FillAreaTargets(TagUnitMap,m_caster->GetPositionX(), m_caster->GetPositionY(),radius,inFront ? PUSH_IN_FRONT : PUSH_IN_BACK,SPELL_TARGETS_AOE_DAMAGE);
            break;
        }
+        case TARGET_NARROW_FRONTAL_CONE:
+            FillAreaTargets(TagUnitMap,m_caster->GetPositionX(), m_caster->GetPositionY(), radius, PUSH_IN_FRONT_15, SPELL_TARGETS_AOE_DAMAGE);
+            break;
        case TARGET_IN_FRONT_OF_CASTER_30:
            FillAreaTargets(TagUnitMap,m_caster->GetPositionX(), m_caster->GetPositionY(), radius, PUSH_IN_FRONT_30, SPELL_TARGETS_AOE_DAMAGE);
            break;
diff --git a/src/game/Spell.h b/src/game/Spell.h
index c197c3e..b4c42b1 100644
--- a/src/game/Spell.h
+++ b/src/game/Spell.h
@@ -84,6 +84,7 @@ enum SpellNotifyPushType
{
    PUSH_IN_FRONT,
    PUSH_IN_FRONT_30,
+    PUSH_IN_FRONT_15,
    PUSH_IN_BACK,
    PUSH_SELF_CENTER,
    PUSH_DEST_CENTER,
@@ -714,6 +715,10 @@ namespace MaNGOS
                        if(i_spell.GetCaster()->isInFrontInMap((Unit*)(itr->getSource()), i_radius, M_PI/6 ))
                            i_data->push_back(itr->getSource());
                        break;
+                    case PUSH_IN_FRONT_15:
+                        if(i_spell.GetCaster()->isInFrontInMap((Unit*)(itr->getSource()), i_radius, M_PI/12 ))
+                            i_data->push_back(itr->getSource());
+                        break;
                    case PUSH_IN_BACK:
                        if(i_spell.GetCaster()->isInBackInMap((Unit*)(itr->getSource()), i_radius, 2*M_PI/3 ))
                            i_data->push_back(itr->getSource());

Link to comment
Share on other sites

 Share

×
×
  • 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