slp13at420
Mad Scientist
No, what I meant was that you could make a 5th method called something like 'HandlePremiumModifier',
and call that method from the other methods. You can do this because those methods do the exact same
thing. So basically one generic method, which is called from the OnDamage, ModifyMeleeDamage and
ModifySpellDamageTaken methods.
By doing this, you will get rid of code that does the exact same thing.
oooohhh ok lol duh k gotcha
x = PREM::IncreaseValueWithOffset(Player* player, uint32 val)
n just use that rather than same code each event. lol
n updated a couple to use them too in player events
and a couple misc that can use it too.
added 1 method for increase and 1 for decrease.
tnx
:top:
Last edited: