TrinityCore icon indicating copy to clipboard operation
TrinityCore copied to clipboard

[Spell/DK] Invalid Target on Death and Decay

Open Mik43l opened this issue 14 years ago • 8 comments

  1. use (A) rogue and (B) Dk
  2. starts duel: rogue switchs in stealth, Dk goes away
  3. Rogue remains in beginnging position, Dk casts D&D on rogue
  4. D&D starts, consumes runes but immediatly stops its effects (spell goes in icd), on dk's screen appears invalid target

Notes: If you (as dk) see rogue in stealth, and use D&D, its succesfully!

Mik43l avatar Apr 26 '12 10:04 Mik43l

specify your version of a kernel

Expecto avatar Apr 26 '12 17:04 Expecto

There are more ways to reproduce this regarding LOS.

For example, Try casting Death and Decay so that it hits a target that is not in your line of sight, and a "Target is not in los"-Error pops up and the Death and decay instatly vanishes.

You could also cast it on a target that IS in your line of sight and then leave LOS and the same happens.

However, if you cast it so that the first tick of Death and decay hits no one but a later hit does while you are not in line of sight, the Death and Decay will stay up.

Pesthuf avatar Apr 26 '12 19:04 Pesthuf

Where can i modify that mechanics? Or how can i remove consume of runes and prevent icd spell?

Mik43l avatar Apr 27 '12 21:04 Mik43l

https://github.com/PKX/TrinityCore/commit/737a1dfb6ed47ebe034b3f986e967123fb1637f4 should solve at least the problems with LOScheck

PKX avatar May 10 '12 17:05 PKX

@PKX thanks, now works fine for me

Mik43l avatar May 20 '12 23:05 Mik43l

Link with commit posted above no longer works and this is still an active issue on latest TC revision.

Has anybody else come up with solution ?

Thanks

Tyrkysovej avatar Aug 31 '12 15:08 Tyrkysovej

diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index a1d53f9..990a302 100755
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -3917,6 +3917,8 @@ void SpellMgr::LoadDbcDataCorrections()
         case 48955: // Refer A Friend Summon Effect
             spellInfo->AttributesEx2 |= SPELL_ATTR2_CAN_TARGET_NOT_IN_LOS;
             break;
+        case 52212: // Death Knight: Death and Decay trigger spell
+            spellInfo->AttributesEx6 |= SPELL_ATTR6_CAN_TARGET_INVISIBLE;
         default:
             break;
         }

resolves the problem.

edit: there is a break missing in above diff, see pull request below for correct diff :)

betagan avatar Sep 15 '12 12:09 betagan

confirm rev: b7251e1c9ebf9f4151adb46cae77b1213ebd5bf8

ghost avatar Jul 23 '14 17:07 ghost