Jump to content

[9080] [fixed] Bug: Anetherons Sleep Spell


Recommended Posts

Posted

Hi guys.

I really hope Vladimir or a "spell fixing freak" will read this thread, cause for me its very important.

I am currently working with X-Savior on the Acid fixes for the Mount Hyjal and some days ago I found a very annoying and also strange bug.

I already talked with NoFantasy about the problem, and he also did not have a solution.

So I really hope someone could help.

The problem is the Sleep spell of the boss "Anetheron".

Boss: http://www.wowhead.com/?npc=17808

Spell: http://www.wowpanda.net/s31298

As you can see the spell will cast sleep effect to all hostile gamers in 55m radius.

The problem is that this is wrong. On official the sleep effect should only affect 3 random gamers but currently it affects all gamers in 55m radius.

So the question is how can we limit the spell to 3 gamers only.

Cause dbc has TARGET_CASTER_COORDINATES/TARGET_ALL_ENEMY_IN_AREA it means the boss must cast, and then it affect hostile in area. So its right that the boss should cast the spell on himself, my first idea was to let gamers cast the spell on themselfes, what is wrong.

So we need to limit the spell just for 3 targets.

Anyone has an idea how to do this?

Thx a lot for your time. I think everyone can see the big problem of this spell, which makes the boss unplayable.

Other informations:

Mangos Version: 9071

SD2 Version: 1513

Database Name and Version : UDB 0.11.6 (386)

How it SHOULD work: Sleep should only affect 3 gamers.

How it DOES work: Currently the spell affect ALL hostile gamers in 55m radius.

Bye NuRRi

Posted

try this

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 3f24bbd..1aef452 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1318,6 +1318,14 @@ void Spell::SetTargetMap(uint32 effIndex,uint32 targetMode,UnitList& TagUnitMap)
            break;
    }

+    switch(m_spellInfo->Id)
+    {
+        case 31298: // Sleep
+                unMaxTargets = 3;
+        default:
+            break;
+    }
+
    Unit::AuraList const& mod = m_caster->GetAurasByType(SPELL_AURA_MOD_MAX_AFFECTED_TARGETS);
    for(Unit::AuraList::const_iterator m = mod.begin(); m != mod.end(); ++m)
    {

Posted

Thx a lot KAPATEJIb.

Your fix is working like a charm.

Would be great if someone could commit this little fix to git, so Acid can bring out the fixed script for Anetheron.

Bye

NuRRi

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