View Single Post
  #3  
Old 01-13-2011, 11:27 AM
Hateborne
Hill Giant
 
Join Date: May 2010
Posts: 125
Default

Apologies for not clarifying.

In the source (C++).

I chose Gift of Mana because the effect is similar. Currently, I have issues with Gift of Mana not working in the current source version.

Player has 50k mana.
Player casts Nuke001 (30k mana).
Player gains Gift of Mana.
Player has Gift of Mana but CANNOT cast Nuke002 (25k mana) because the client is only checking current mana and ignoring the fact that he has GoM up.

Basically, in the source I am using (possibly even the ones on servers) GoM will only work if the player already had the mana to cast the spell. If you have GoM but don't have the actual amount to cast the spell....no go.

Trying to find a way to add a check for either a dynamic spell id (search for the spell id where the name matches 'Gift of Mana') or hardcode in the spell id from my spell file. As server goes to set the mana cost, if buff GoM is found, then mana cost is set to 1.

The stacking thing is something completely different (as I have learned last night). Ignore that bit.



Thank you for the reply and thank you in advance for any more you can provide!

-Hate
Reply With Quote