TrinityCore icon indicating copy to clipboard operation
TrinityCore copied to clipboard

[3.3.5]Spell Conjured Mana Strudel

Open Laintime opened this issue 11 years ago • 14 comments

http://www.wowhead.com/item=43523/conjured-mana-strudel Only mana buff applys. Rev. https://github.com/TrinityCore/TrinityCore/commit/43e8c841f5357a6cf41cdb8ed5e496019f14a16a image

Laintime avatar Aug 14 '15 15:08 Laintime

TrinityCore rev. 43e8c841f535 2015-08-12 23:43:24 +0200 (3.3.5 branch) (Win64, Release) Confirmed, http://wotlk.openwow.com/spell=58648 only triggers Effect 2 (Drink), not Effect 1 (Food). Note: Eating a [Conjured Mana Strudel] also triggers the error message Spell is not ready yet.

.cast 45548 (Food) and .cast 57073 (Drink) works as expected.

  • http://wotlk.openwow.com/item=43523 (Conjured Mana Strudel)
  • http://wotlk.openwow.com/spell=58648 (Restores 22500 health and 3200 mana over 30 sec. Must remain seated while eating.)
    • Effect 1: http://wotlk.openwow.com/spell=45548 (Food)
    • Effect 2: http://wotlk.openwow.com/spell=57073 (Drink)

If the wotlk.openwow.com info is based directly on TDB info, there is a possible (?) symptom of this spell error on the spell 58648 page: both the Drink and the Food icons are shown in the Effect 1 (Food) section (compared to the page http://www.wowhead.com/spell=58648/refreshment).

ghost avatar Aug 14 '15 16:08 ghost

Cannot reproduce on rev. d69a31d23812 I get both buffs and no error message.

id: 45548 [Food] effmask: 1 charges: 0 stack: 1 slot 0 duration: 26400 maxduration: 30000 caster: player guid: 2 id: 57073 [Drink] effmask: 3 charges: 0 stack: 1 slot 1 duration: 26400 maxduration: 30000 caster: player guid: 2

Killyana avatar Aug 14 '15 16:08 Killyana

well the commit is 2 days old https://github.com/TrinityCore/TrinityCore/commit/43e8c841f5357a6cf41cdb8ed5e496019f14a16a and not 6 days old https://github.com/TrinityCore/TrinityCore/commit/d69a31d238122ab1ceb998908ebf218299792a16

and: does this affects all bufffoods which add a statsbuff?

Lumber-Jack-2 avatar Aug 14 '15 16:08 Lumber-Jack-2

This commit is bugged https://github.com/TrinityCore/TrinityCore/commit/43e8c841f5357a6cf41cdb8ed5e496019f14a16a

Laintime avatar Aug 14 '15 16:08 Laintime

why do you close it then?

Lumber-Jack-2 avatar Aug 14 '15 16:08 Lumber-Jack-2

Sorry lag.

Laintime avatar Aug 14 '15 16:08 Laintime

Interesting. I forgot 43e8c841f5 (Core/Spells: Fix potions exploit). From https://github.com/TrinityCore/TrinityCore/commit/43e8c841f5357a6cf41cdb8ed5e496019f14a16a#commitcomment-12676242: Item(Entry: 43523) spellid_1 (58648) category 11 added to sSpellsByCategoryStore

I presume that similar issues will appear on other items with hp + mana buff. I tested some cooking items with both buffs, but they work. Will this issue only apply to conjured items and potions / elixirs / flasks?

ghost avatar Aug 14 '15 16:08 ghost

It will appear on items that trigger two spells with the same category cooldown.

robinsch avatar Aug 14 '15 17:08 robinsch

@ariel- this issue happens because of how cooldowns are handled, adding them before the spell finishes casting

jackpoz avatar Aug 14 '15 19:08 jackpoz

The problem comes from the Spell handling code, as both "food" and "drink" spells are being TRIGGERED by the original item spell, they should ignore any cooldowns present. (they get the TRIGGERED_FULL_MASK flag, in particular they get TRIGGERED_IGNORE_SPELL_AND_CATEGORY_CD)

ariel- avatar Aug 14 '15 23:08 ariel-

OK, since that spell (and other spells with 2 sub-spells with shared cooldown) should be exceptions to the exploit prevention, can it be done in SpellMgr.cpp or does it need a separate sub-script somewhere else?

ghost avatar Aug 15 '15 02:08 ghost

Guess this is a cheat but it works.

UPDATE item_template SET spellcategory_1=0 WHERE entry=43523;

Stefan226 avatar Aug 19 '15 18:08 Stefan226

Guess this is a cheat but it works.

UPDATE `item_template` SET `spellcategory_1`= 0 WHERE `entry`= 43523;

I don't know, I hope one of the experienced devs will comment on that.

ghost avatar Aug 19 '15 18:08 ghost

Yes, hack.

robinsch avatar Aug 19 '15 19:08 robinsch