TrinityCore icon indicating copy to clipboard operation
TrinityCore copied to clipboard

[DK] Anti-Magic Shell

Open mildavas opened this issue 15 years ago • 19 comments

http://www.wowhead.com/spell=48707 Anti-Magic Shell is a little broken now: It should defend DK from druid's Cyclone, from shaman's Hex and rogue's Poison application.

Some proofs: http://www.warcraftmovies.com/movieview.php?id=137567 25:45 and 27:17 it shows, how DK AMS'ed shaman's Hex

Same movie, 28:50 it shows, how rogue gets near DK, DK uses AMS and no poisons gets applied, only runic power gained

mildavas avatar Jul 21 '11 08:07 mildavas

you can try this https://gist.github.com/1096911 . Mostly based on info from here http://www.wowhead.com/spell=48707#comments:id=1049350 . One of examples why it's based on mechanics - http://www.wowhead.com/spell=66935 (triggers 66862 on normal difficulty and 67681 on heroic) , it should give you immune to aura apply, but damage still should be there (as you can see there is no Dispel types in triggered spell)

But i anyway unsure about my patch because i need to know for example if mage's Fireball should apply debuff or no when you have active Anti-Magic Shield.

And also i don't know if it should prevent aura apply of "ID - 72848 Arctic Breath" or no

tobmaps avatar Jul 21 '11 10:07 tobmaps

8310722 :)

jambonfrite avatar Jul 26 '11 12:07 jambonfrite

8310722 :)

and? This commit will not fix your problem

tobmaps avatar Jul 26 '11 12:07 tobmaps

:( this worked well on my server so it should work for karolisb i think ;)

jambonfrite avatar Jul 26 '11 13:07 jambonfrite

http://www.youtube.com/watch?v=RIsabfXpRNM - 2:00 it shows how mage casts Scorch on AMS and something gets immuned, Living Bomb explodes. Maybe it is related to Fireball somehow. Haven't played for mage so I don't know.

Moreover AMS tooltip says "Prevents application of harmful magical effects". Maybe that Fireball's debuff is an magical effect.

mildavas avatar Aug 09 '11 13:08 mildavas

so...? this (8310722) fix are working or not?

ghost avatar Aug 11 '11 10:08 ghost

aios, it will do nothing with Hex and poisons

tobmaps avatar Aug 11 '11 15:08 tobmaps

but do with druid's cyclone yep?

ghost avatar Aug 11 '11 17:08 ghost

I personally did


diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 755449a..30ceaf2 100755
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -11659,9 +11660,9 @@ bool Unit::IsImmunedToSpellEffect(SpellInfo const* spellInfo, uint32 index) cons
         // Check for immune to application of harmful magical effects
         AuraEffectList const& immuneAuraApply = GetAuraEffectsByType(SPELL_AURA_MOD_IMMUNE_AURA_APPLY_SCHOOL);
         for (AuraEffectList::const_iterator iter = immuneAuraApply.begin(); iter != immuneAuraApply.end(); ++iter)
-            if (spellInfo->Dispel == DISPEL_MAGIC &&                                      // Magic debuff
-                ((*iter)->GetMiscValue() & spellInfo->GetSchoolMask()) &&  // Check school
-                !spellInfo->IsPositiveEffect(index))                                  // Harmful
+            if ((spellInfo->Dispel == DISPEL_MAGIC || spellInfo->Dispel == DISPEL_CURSE)    // Magic or curse debuff
+                && ((*iter)->GetMiscValue() & spellInfo->GetSchoolMask())                   // Check school
+                && !spellInfo->IsPositiveEffect(index))                                     // Harmful
                 return true;
     }
 

Working with Hex, not tested with other stuff. Most probably hack like because i had no info when i did that.

Warpten avatar Aug 12 '11 18:08 Warpten

Thanks _ i merged two pathches)

ghost avatar Aug 12 '11 18:08 ghost

I woud personally trust more tobmap's patch. My diff may break some stuff, but i didn't check for that.

Warpten avatar Aug 12 '11 18:08 Warpten

i can't find tobmabs patch... do you have it?

ghost avatar Aug 12 '11 18:08 ghost

First answer on this issue, first link.

Want binoculars? (sry didnt mean giggles, fr-en translation brain typo :D)

Warpten avatar Aug 12 '11 18:08 Warpten

fuck - i don't read this message - very sorry - and thank you...

ghost avatar Aug 12 '11 19:08 ghost

Need fix AM-shell and cyclon for newest TC revision

SignFinder avatar Sep 19 '11 08:09 SignFinder

Well, it's quite a simple fix really.

DELETE FROM spell_linked_spell WHERE spell_trigger IN (48707); INSERT INTO spell_linked_spell (spell_trigger, spell_effect, type, comment) VALUES ('48707', '-33786', '2', 'AMS Immune to Cyclone'), ('48707', '-51514', '2', 'AMS Immune to Hex');

MagicCG avatar Oct 25 '11 12:10 MagicCG

Also, some people argue you can,t be dispelled under AMS. Any idea?

Warpten avatar Oct 25 '11 13:10 Warpten

Well

Surrounds the Death Knight in an Anti-Magic Shell, absorbing 75% of the damage dealt by harmful spells (up to a maximum of 50% of the Death Knight's health) and preventing application of harmful magical effects. Lasts 5 sec.

harmful magical effects. <-- Being the key words, i would think not.

MagicCG avatar Oct 25 '11 13:10 MagicCG

#2408

Subv avatar Apr 14 '12 19:04 Subv