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: [Question] Spells Buffs and debuffs.  (Read 1039 times)

tote93

  • Registred Member
  • Race Changer
  • *****
  • Posts: 28
    • View Profile
[Question] Spells Buffs and debuffs.
« on: October 25, 2013, 09:16:04 pm »
hello, these days I've been doing spells customs, and have come to create a decent, here is the link:


But I wonder if anyone has the answer or can direct me in something, like adding to the spell that will put a debuff, the player, or give me a buff to me.
Put these for example:
Wrath(druid) gives buffo Eclipse (lunar and solar).
And for example frostbolt, freezing  debuff.
I would like to know if anyone can direct me to. Dbc serious spell.dbc guess, and the column to edit.
Thx for reading and by the help.
Regards.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [Question] Spells Buffs and debuffs.
« Reply #1 on: October 26, 2013, 12:57:55 pm »
In TrinityCore: unit.cpp ln. 6171

Code: [Select]
           // Eclipse
            if (dummySpell->SpellIconID == 2856 && GetTypeId() == TYPEID_PLAYER)
            {
                if (!procSpell || effIndex != 0)
                    return false;

                bool isWrathSpell = (procSpell->SpellFamilyFlags[0] & 1);

                if (!roll_chance_f(dummySpell->ProcChance * (isWrathSpell ? 0.6f : 1.0f)))
                    return false;

                target = this;
                if (target->HasAura(isWrathSpell ? 48517 : 48518))
                    return false;

                triggered_spell_id = isWrathSpell ? 48518 : 48517;
                break;
            }
« Last Edit: January 01, 1970, 01:00:00 am by Admin »