[ACHIEVMENT] Out With It [Hallow's End]
Upon eating approx 2-3 Tricky Treat's ( http://www.wowhead.com/item=33226 ) in a row you should get the Upset Tummy ( http://old.wowhead.com/spell=42966 ) effect and hence the achievement.
The previous issues #3553 and #3657 are closed and the suggested fix was ignored (as far as I can see): https://github.com/darkman1983/TrinityCore/commit/3d12bb6e6a7f1d2385388fbf57611e60088486b7
TDB48 up to 13aa00d5f216.
Another issue victim of the @kandera's close marathon.
Confirmed!
Confirmed
Confirmed, used 100 Tricky treat, and no achiev
It'll be nice if you can provide TDB and TC versions when confirming.
Confirmed
I use this, i don't rememeber source....
diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp
index 3f75c7d..0b6f184 100644
--- a/src/server/scripts/Spells/spell_generic.cpp
+++ b/src/server/scripts/Spells/spell_generic.cpp
@@ -561,7 +561,10 @@ enum TrickOrTreatSpells
{
SPELL_TRICK = 24714,
SPELL_TREAT = 24715,
- SPELL_TRICKED_OR_TREATED = 24755
+ SPELL_TRICKED_OR_TREATED = 24755,
+ SPELL_TRICKY_TREAT_SPEED = 42919,
+ SPELL_TRICKY_TREAT_TRIGGER = 42965,
+ SPELL_UPSET_TUMMY = 42966
};
class spell_gen_trick_or_treat : public SpellScriptLoader
@@ -602,6 +605,45 @@ class spell_gen_trick_or_treat : public SpellScriptLoader
}
};
+class spell_gen_tricky_treat : public SpellScriptLoader
+{
+ public:
+ spell_gen_tricky_treat() : SpellScriptLoader("spell_gen_tricky_treat") {}
+
+ class spell_gen_tricky_treat_SpellScript : public SpellScript
+ {
+ PrepareSpellScript(spell_gen_tricky_treat_SpellScript);
+
+ bool Validate(SpellInfo const* /*spellEntry*/)
+ {
+ if (!sSpellMgr->GetSpellInfo(SPELL_TRICKY_TREAT_SPEED))
+ return false;
+ if (!sSpellMgr->GetSpellInfo(SPELL_TRICKY_TREAT_TRIGGER))
+ return false;
+ if (!sSpellMgr->GetSpellInfo(SPELL_UPSET_TUMMY))
+ return false;
+ return true;
+ }
+
+ void HandleScript(SpellEffIndex /*effIndex*/)
+ {
+ if (Unit* caster = GetCaster())
+ if (caster->HasAura(SPELL_TRICKY_TREAT_TRIGGER) && caster->GetAuraCount(SPELL_TRICKY_TREAT_SPEED) > 3 && roll_chance_i(33))
+ caster->CastSpell(caster, SPELL_UPSET_TUMMY, true);
+ }
+
+ void Register()
+ {
+ OnEffectHitTarget += SpellEffectFn(spell_gen_tricky_treat_SpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
+ }
+ };
+
+ SpellScript* GetSpellScript() const
+ {
+ return new spell_gen_tricky_treat_SpellScript();
+ }
+};
+
class spell_creature_permanent_feign_death : public SpellScriptLoader
{
public:
@@ -2702,6 +2744,7 @@ void AddSC_generic_spell_scripts()
new spell_gen_remove_flight_auras();
new spell_gen_trick();
new spell_gen_trick_or_treat();
+ new spell_gen_tricky_treat();
new spell_creature_permanent_feign_death();
new spell_pvp_trinket_wotf_shared_cd();
new spell_gen_animal_blood();
You mean this https://github.com/darkman1983/TrinityCore/commit/3d12bb6e6a7f1d2385388fbf57611e60088486b7 ?
Darman1983 fix works perfectly