Register for your free account! | Forgot your password?

Go Back   elitepvpers > World of Warcraft > WoW Main - Discussions / Questions
You last visited: Today at 17:36

  • Please register to post and access all features, it's quick, easy and FREE!

 

[Schamane] Spell Totem des heilenden Flusses

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 15
Received Thanks: 0
Exclamation [Schamane] Spell Totem des heilenden Flusses

Guten Tag,

Ich habe ein Problem mit dem Spell und zwar gibt der Schamane wenn der das Totem aufstellt nicht genug heilung, wie könnte ich dies beheben hier mein momentaner Code:
Code:
class spell_sha_healing_stream_totem : public SpellScriptLoader
{
    public:
        spell_sha_healing_stream_totem() : SpellScriptLoader("spell_sha_healing_stream_totem") { }

        class spell_sha_healing_stream_totem_SpellScript : public SpellScript
        {
            PrepareSpellScript(spell_sha_healing_stream_totem_SpellScript);

            bool Validate(SpellEntry const* /*SpellEntry*/)
            {
				if (!sSpellStore.LookupEntry(SPELL_HEALING_STREAM_TOTEM_HEAL))
                    return false;
                return true;
            }

            void HandleDummy(SpellEffIndex /* effIndex */)
            {
                int32 damage = GetEffectValue();
                SpellEntry const *spellInfo = sSpellStore.LookupEntry(SPELL_HEALING_STREAM_TOTEM_HEAL);
                if (Unit* target = GetHitUnit())
                    if (Unit* caster = GetCaster())
                    {
                        if (Unit* owner = caster->GetOwner())
                        {
							// Restorative Totems
							//if (AuraEffect* dummy = owner->GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_SHAMAN, 338, 1))
							 //AddPctN(damage, dummy->GetAmount() * 100.0f);

							if (AuraEffect const* aurEff = owner->GetAuraEffect(52042, EFFECT_0))
								AddPctN(damage, aurEff->GetAmount() * 40.0f);

							// Glyph of Healing Stream Totem
							if (AuraEffect const* aurEff = owner->GetAuraEffect(55456, EFFECT_0))
								AddPctN(damage, aurEff->GetAmount() * 100.0f);
								}
                        caster->CastCustomSpell(target, SPELL_HEALING_STREAM_TOTEM_HEAL, &damage, 0, 0, true, 0, 0, GetOriginalCaster()->GetGUID());
                    }
            }

            void Register()
            {
                OnEffectHitTarget += SpellEffectFn(spell_sha_healing_stream_totem_SpellScript::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY);
            }
        };

        SpellScript* GetSpellScript() const
        {
            return new spell_sha_healing_stream_totem_SpellScript();
        }
};
Vielen Dank im Vorraus

Lg nivek123



nivek123 is offline  
Old   #2
 
elite*gold: 0
Join Date: Apr 2012
Posts: 71
Received Thanks: 6
hä? ... besseres gear = mehr heilung


Thalarias is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[HELP]Totem
how can i make no need totem back for full BP after maintenance? this waste time cause after maintenance must totem back to up back bp.
2 Replies - EO PServer Hosting
[Help]ME Plz how to open all totem
1-can some one help me to open all pet in the totem 2-how to make any one start withe lvl 50 and lvl 3 vip
3 Replies - EO PServer Hosting
[Help] Totem
When we created a legion in my DB, all totems already been opened as to remove it ...
3 Replies - EO PServer Hosting
[HELP]TOTEM CANT SEE!!
HELLO EVERYONE I REALLY NEED YOU ALL HELP PLEASE HELP ME... in my server i cant see totem its like invisible..how i want to fix it can u give me...
21 Replies - EO PServer Hosting
some help with totem
im having a problem with the totem thing is we using db and all of the totems are all screwed up it cant activate some pets because they are not...
4 Replies - EO PServer Hosting



All times are GMT +1. The time now is 17:36.


Powered by vBulletin®
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2016 elitepvpers All Rights Reserved.