Spell: Fix Arcing Sear (and other TARGET_UNIT_ENEMY_NEAR_CASTER spells) - #846
Spell: Fix Arcing Sear (and other TARGET_UNIT_ENEMY_NEAR_CASTER spells)#846insunaa wants to merge 1 commit into
TARGET_UNIT_ENEMY_NEAR_CASTER spells)#846Conversation
spells) Spells of this type casted by NPCs don't have a UnitTarget so the function that would limit the number of chain jumps was skipped completely.
|
Just to add to why this is being done: Spell 30235 (Arcing Sear) is supposed to be limited to 3 targets, this is the spell casted by the 30234 passive that Astral Flares use on The Curator fight. This is confirmed by the client dbc, the server db, guides, videos, and logs. Currently the spell cast has no target limit when used in game, so it will just hit the entire raid making the fight more difficult than necessary. The resulting bug comes from the implicit target, since Chain Lightning shaman spells use 6 but this spell uses 2. Even though Chain Lightning uses the same scheme as Arcing Sear there is a nullptr being passed for the UnitTarget. |
|
Okay so, first of all, love spells that are one of a kind in all of tbc. Second of all, You need for this spell to do this first:
Because otherwise, .front() could have furthest target and possibly have no eligible jumps. (and search is from caster) Furthermore, and this is mainly an oversight on my end: The chain from caster one likely needs to behave the same way. Cone should be fine already. |
|
My changes were as always minimally invasive to preserve the original intent. In your original code you I thought about sorting first but decided against it for that reason. For the second note I am lacking any context |



🍰 Pullrequest
Spells of this type casted by NPCs don't have a UnitTarget so the function that would limit the number of chain jumps was skipped completely.
Proof
Issues
How2Test
Todo / Checklist