Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Topic started by: The0dark0one on May 20, 2015, 09:18:00 pm

Title: [SOLVED] Overpower help?
Post by: The0dark0one on May 20, 2015, 09:18:00 pm
I'm using Mangoszero and I taught overpower to a character that is not a warrior.  For some reason, this broke he spell and it no longer becomes active after an enemy dodge.  

I assume this means that it is hard coded into the source.  Does anyone know where or how this is coded?  Secondly, how I can change it to work for any class?
Title: Re: Overpower help?
Post by: Amaroth on May 21, 2015, 12:20:18 am
Warrior spells in general tend to need to have correct Stance active (so learning them alone won't give you possibility to cast them, but Overpower doesn't seem to have Stance-dependencies). They also cost rage. So if your character has basicaly 0 rage while its not a Warrior and has no Stance active while it (probably) doesn't even know any, how can it possibly cast Overpower (or any other Warrior spell)? Spell isn't broken and I don't believe that there is any "class restriction".

I would suggest you to try to learn some Stance ablitty and/or use it and also to use .mod rage 100 on you. And how to make this accessible to players? Well, the best way I can imagine is creating duplicite spells without any cost, or with mana/energy/runic power/runes costs for certain classes so they can use it.
Title: Re: Overpower help?
Post by: The0dark0one on May 22, 2015, 06:39:27 am
Turns out my assumptions about the source code were correct, and I found the code too.  It was located in unit.cpp.

Code: [Select]
// Overpower on victim dodge
 if (procExtra & PROC_EX_DODGE && GetTypeId() == TYPEID_PLAYER && getClass() == CLASS_WARRIOR)
      StartReactiveTimer(REACTIVE_OVERPOWER);              
            }

I just removed/changed the class requirements and voila, it works now.  The same was true for counterattack which was also giving me trouble.
Title: Re: [SOLVED] Overpower help?
Post by: Amaroth on May 22, 2015, 08:43:57 am
Well, quite that surprised me. Thanks for posting the result of your search :).