Code: http://pastebin.com/S4Ph0xSk

Enjoy wink

Hey, this is nice. Do you mind if I push these things to live?

Sure, no problem tongue

I think this is wrong.

                    case CLASS_MAGE:
                    {
                        //40% damage bonus of mage's frost damage
                        float val = m_owner->GetUInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS + SPELL_SCHOOL_FROST) * 0.4;
                        if (val < 0)
                            val = 0;
                        SetBonusDamage(int32(val));

In  Pet.cpp already adds 40 percent onto based on frost damage. Now I'm not 100% sure how it was in TBC but wowwiki confirms that waterbolt should scale from the mages frost damage.