This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [C++] Some Spell Fixes  (Read 2403 times)

Kian

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 18
    • View Profile
[C++] Some Spell Fixes
« 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Tigurius

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 126
    • View Profile
Re: [C++]Some Spell Fixes
« Reply #1 on: February 22, 2010, 06:32:53 pm »
Use Code tags: Code /Code
And also add some explanation to the code.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kian

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 18
    • View Profile
Re: [C++]Some Spell Fixes
« Reply #2 on: February 23, 2010, 09:52:19 am »
Ok, thy for your reply
« Last Edit: January 01, 1970, 01:00:00 am by Admin »