Public feed #889130

Daduu

public diff v1 · immutable
Raw Edit
·published 2008-02-02 18:12 UTC
rendered paste body
Index: game/SpellEffects.cpp===================================================================--- game/SpellEffects.cpp	(revision 5129)+++ game/SpellEffects.cpp	(working copy)@@ -1076,6 +1076,25 @@             return;         } +        // Nigh Invulnerability Belt+        case 30458:+        {+            if(m_caster->GetTypeId() != TYPEID_PLAYER)+                return;++            uint32 spell_id = 0;++            uint32 roll = urand(0, 99);++            if(roll < 10)                                    // 10% for backfire (off-like chance unknown)+                spell_id = 30457;+            else+                spell_id = 30456;++            m_caster->CastSpell(m_caster,spell_id,true,NULL);+            return;+        }+         //Warrior's Wrath         case 21977:         {