[Spell/DK] Invalid Target on Death and Decay
- use (A) rogue and (B) Dk
- starts duel: rogue switchs in stealth, Dk goes away
- Rogue remains in beginnging position, Dk casts D&D on rogue
- 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!
specify your version of a kernel
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.
Where can i modify that mechanics? Or how can i remove consume of runes and prevent icd spell?
https://github.com/PKX/TrinityCore/commit/737a1dfb6ed47ebe034b3f986e967123fb1637f4 should solve at least the problems with LOScheck
@PKX thanks, now works fine for me
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
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 :)
confirm rev: b7251e1c9ebf9f4151adb46cae77b1213ebd5bf8