Forum > Serverside Modding
[C++] Some Spell Fixes
(1/1)
Kian:
:!: Hey guys,
To apply this patches, open your spellfixes.cpp and add to the end of the file the lines for the spells:
--- Code: ---
//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;
}
--- End code ---
--- Code: --- // 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;
--- End code ---
--- Code: --- //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; }
--- End code ---
--- Code: --- // 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; }
--- End code ---
--- Code: --- 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; }
--- End code ---
--- Code: ---// 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; }
--- End code ---
--- Code: --- // 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; }
--- End code ---
/edit
--- Code: --- //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; }
--- End code ---
--- Code: --- //Shaman Glyph Hex fix if( sp->Id == 63291 ) sp->EffectApplyAuraName[0] = SPELL_AURA_DUMMY;
--- End code ---
Have fun
Tigurius:
Use Code tags: Code /Code And also add some explanation to the code.
Kian:
Ok, thy for your reply
Navigation
[0] Message Index
|