Trinitycore: [3.3.5] Spell/Warlock Fel Domination charge consumption

Created on 19 Dec 2016  路  5Comments  路  Source: TrinityCore/TrinityCore

Description:
Your next Imp, Voidwalker, Succubus, Felhunter or Felguard Summon spell has its casting time reduced by 5.5 sec and its Mana cost reduced by 50%.

Current behaviour: successful pet summoning doesn't remove Fel domination charge.

Expected behaviour: successful pet summoning should drop Fel domination charge.

Steps to reproduce the problem:

  1. Apply Fel domination.
  2. Try to summon Imp, Felguard, Succubus.
  3. Fel domination still active.

Branch(es): 3.3.5

TC rev. hash/commit: https://github.com/TrinityCore/TrinityCore/commit/c809c220e29f7094121cc8489f5588d8bfee414d

TDB version: TDB335.62

Operating system: Linux debian 8

Possible fix

DELETE FROM `spell_proc` WHERE `SpellId` = 18708;
INSERT INTO `spell_proc` VALUES (18708, 0, 0, 0, 0, 0x20000000, 0, 0, 0x0000001, 0, 0x0000008, 0, 0, 0, 0);
Branch-3.3.5a Sub-Spells

Most helpful comment

lemme show you a magic trick :

class spell_warl_remove_fel_domination : public SpellScriptLoader
{
public:
    spell_warl_remove_fel_domination() : SpellScriptLoader("spell_warl_remove_fel_domination") { }

    class spell_warl_remove_fel_domination_SpellScript : public SpellScript
    {
        PrepareSpellScript(spell_warl_remove_fel_domination_SpellScript);
        void RemoveAura()
        {
            Unit* caster = GetCaster();
            if (caster->HasAura(18708))
                caster->RemoveAura(18708);

        }

        void Register() override
        {
            AfterCast += SpellCastFn(spell_warl_remove_fel_domination_SpellScript::RemoveAura);
        }

    };

    SpellScript* GetSpellScript() const override
    {
        return new spell_warl_remove_fel_domination_SpellScript();
    }
};
INSERT INTO `world`.`spell_script_names` (`spell_id`, `ScriptName`) VALUES ('-688', 'spell_warl_remove_fel_domination');
INSERT INTO `world`.`spell_script_names` (`spell_id`, `ScriptName`) VALUES ('-697', 'spell_warl_remove_fel_domination');
INSERT INTO `world`.`spell_script_names` (`spell_id`, `ScriptName`) VALUES ('-712', 'spell_warl_remove_fel_domination');
INSERT INTO `world`.`spell_script_names` (`spell_id`, `ScriptName`) VALUES ('-30146', 'spell_warl_remove_fel_domination');
INSERT INTO `world`.`spell_script_names` (`spell_id`, `ScriptName`) VALUES ('-691', 'spell_warl_remove_fel_domination');

tadahhhhhhhhhhh its...its gone

All 5 comments

Confirmed in 85c68d6.
With @Eliminationzx sql Fel Domination is consumed. It will require to be reviewed by a trinitycore member.

lemme show you a magic trick :

class spell_warl_remove_fel_domination : public SpellScriptLoader
{
public:
    spell_warl_remove_fel_domination() : SpellScriptLoader("spell_warl_remove_fel_domination") { }

    class spell_warl_remove_fel_domination_SpellScript : public SpellScript
    {
        PrepareSpellScript(spell_warl_remove_fel_domination_SpellScript);
        void RemoveAura()
        {
            Unit* caster = GetCaster();
            if (caster->HasAura(18708))
                caster->RemoveAura(18708);

        }

        void Register() override
        {
            AfterCast += SpellCastFn(spell_warl_remove_fel_domination_SpellScript::RemoveAura);
        }

    };

    SpellScript* GetSpellScript() const override
    {
        return new spell_warl_remove_fel_domination_SpellScript();
    }
};
INSERT INTO `world`.`spell_script_names` (`spell_id`, `ScriptName`) VALUES ('-688', 'spell_warl_remove_fel_domination');
INSERT INTO `world`.`spell_script_names` (`spell_id`, `ScriptName`) VALUES ('-697', 'spell_warl_remove_fel_domination');
INSERT INTO `world`.`spell_script_names` (`spell_id`, `ScriptName`) VALUES ('-712', 'spell_warl_remove_fel_domination');
INSERT INTO `world`.`spell_script_names` (`spell_id`, `ScriptName`) VALUES ('-30146', 'spell_warl_remove_fel_domination');
INSERT INTO `world`.`spell_script_names` (`spell_id`, `ScriptName`) VALUES ('-691', 'spell_warl_remove_fel_domination');

tadahhhhhhhhhhh its...its gone

Hack, it should be handled by proc system :)

That hack makes me cry...

Have a sense of humor (-_-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

funjoker picture funjoker  路  3Comments

chilito picture chilito  路  3Comments

DDuarte picture DDuarte  路  3Comments

Rochet2 picture Rochet2  路  3Comments

Jonne733 picture Jonne733  路  3Comments