Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Kian on February 22, 2010, 03:46:10 pm

Title: [C++] Some Spell Fixes
Post by: Kian on February 22, 2010, 03:46:10 pm
:!: Hey guys,

To apply this patches, open your spellfixes.cpp and add to the end of the file the lines for the spells:

Code: [Select]



//Deathknight Icy Touch fix.  This will fix the proc of Icy touch.


spell = dbcSPELL.LookupEntryForced( 45477 );
if( spell != NULL )
{
spell->EffectApplyAuraName[0] = SPELL_AURA_PROC_TRIGGER_SPELL;
spell->EffectTriggerSPELL[0]=55918;
spell->procFlags = PROC_ON_CAST_SPELL;
spell->procChance = 100;

}


Code: [Select]
 //  This will fix the Dk disease damage.

switch(m_SPELLProto->Id)
                {
                        case 59879:
                        case 59921:
                                {
                                        if( c != NULL )
                                                dmg = double(c->GetAP()) * 0.055 * 1.15;                                
                                        break;
                             


Code: [Select]
 //This will fix the imp counterspell proc, which silences you for 2 secs

spell = dbcSPELL.LookupEntryForced( 11255 );
if( spell != NULL )
{
spell->EffectApplyAuraName[0] = SPELL_AURA_PROC_TRIGGER_SPELL;
spell->EffectTriggerSPELL[0] = 18469;
spell->procFlags = PROC_ON_CAST_SPELLECIFIC_SPELL;
spell->ProcOnNameHash[0] = SPELL_HASH_COUNTERSPELL;
spell->procChance = 100;
}

//Rank 2

spell = dbcSPELL.LookupEntryForced( 12598 );
if( spell != NULL )
{
spell->EffectApplyAuraName[0] = SPELL_AURA_PROC_TRIGGER_SPELL;
spell->EffectTriggerSPELL[0] = 55021;
spell->procFlags = PROC_ON_CAST_SPELLECIFIC_SPELL;
spell->ProcOnNameHash[0] = SPELL_HASH_COUNTERSPELL;
spell->procChance = 100;
}


Code: [Select]
// This will fix the proc of Owlkin Frenzy


spell = dbcSPELL.LookupEntryForced( 48389 );
if( spell != NULL )
{
spell->EffectApplyAuraName[0] = SPELL_AURA_PROC_TRIGGER_SPELL;
spell->EffectTriggerSPELL[0]=48391;
spell->procFlags = PROC_ON_ANY_DAMAGE_VICTIM;
spell->procChance = 5;
}

// Rank 2
spell = dbcSPELL.LookupEntryForced( 48392 );
if( spell != NULL )
{
spell->EffectApplyAuraName[0] = SPELL_AURA_PROC_TRIGGER_SPELL;
spell->EffectTriggerSPELL[0]=48391;
spell->procFlags = PROC_ON_ANY_DAMAGE_VICTIM;
spell->procChance = 10;
}

//  Rank 3
spell = dbcSPELL.LookupEntryForced( 48393 );
if( spell != NULL )
{
spell->EffectApplyAuraName[0] = SPELL_AURA_PROC_TRIGGER_SPELL;
spell->EffectTriggerSPELL[0]=48391;
spell->procFlags = PROC_ON_ANY_DAMAGE_VICTIM;
spell->procChance = 15;
}


Code: [Select]
With this fix Mages Dragon Breath hits 3 targets.

spell = dbcSPELL.LookupEntryForced( 42950 );
if( spell != NULL )
{
spell->EffectImplicitTargetA[0]= 24;
spell->EffectImplicitTargetA[1]= 24;
spell->EffectImplicitTargetA[2]= 24;
}


Code: [Select]
// This will fix Druid´s Typhoon. It will fix the disorientation.

spell = dbcSPELL.LookupEntryForced( 61384 );
if( spell != NULL )
{
spell->Effect[1] = SPELL_EFFECT_TRIGGER_SPELL;
spell->EffectApplyAuraName[1] = SPELL_AURA_PROC_TRIGGER_SPELL;
spell->EffectTriggerSPELL[1] = 53227;
spell->procFlags = PROC_ON_CAST_SPELL;
spell->procChance = 100;
               }
      
Code: [Select]
// This will fix Shaman Hex. with this fix you get interrupted while casting.

spell = dbcSPELL.LookupEntryForced(51514);
if(spell != NULL)
       {
       
spell->Effect[1] = AURA_INTERRUPT_ON_UNUSED2;
if( spell->NameHash == SPELL_HASH_HEX )
spell->AuraInterruptFlags = AURA_INTERRUPT_ON_UNUSED2;
       }




/edit

Code: [Select]
//Same fix for Mage´s Cone of Cold:

spell = dbcSpell.LookupEntryForced( 42931 );
if( spell != NULL )
{
spell->EffectImplicitTargetA[0]= 24;
spell->EffectImplicitTargetA[1]= 24;
spell->EffectImplicitTargetA[2]= 24;
}

               

             
Code: [Select]
 //Shaman Glyph Hex fix
              if( sp->Id == 63291 )
sp->EffectApplyAuraName[0] = SPELL_AURA_DUMMY;




         Have fun
Title: Re: [C++]Some Spell Fixes
Post by: Tigurius on February 22, 2010, 06:32:53 pm
Use Code tags: Code /Code
And also add some explanation to the code.
Title: Re: [C++]Some Spell Fixes
Post by: Kian on February 23, 2010, 09:52:19 am
Ok, thy for your reply