All pastes #1030184 Raw Edit

Pyroclasm Patch (rev5960)

public diff v1 · immutable
#1030184 ·published 2008-05-26 17:51 UTC
rendered paste body
Index: src/game/Unit.cpp===================================================================--- src/game/Unit.cpp	(revision 5960)+++ src/game/Unit.cpp	(working copy)@@ -5709,11 +5709,11 @@             //Pyroclasm             if(auraSpellInfo->SpellFamilyFlags == 0x0000000000000000 && auraSpellInfo->SpellIconID==1137)             {-                if(!pVictim || !pVictim->isAlive())+                if(!pVictim || !pVictim->isAlive() || pVictim == this)                     return;                  float chance = 0;-                switch (triggeredByAura->GetSpellProto()->Id)+                switch (auraSpellInfo->Id)                 {                     case 18096:                         chance = 13.0f;@@ -5722,6 +5722,15 @@                         chance = 26.0f;                         break;                 }+		switch (procSpell->SpellIconID)+		{+			case 547:+				chance /= 4;+				break;+			case 937:+				chance /= 15;+				break;+		}                 if (roll_chance_f(chance))                     CastSpell(pVictim, 18093, true, castItem, triggeredByAura);                 return;