Skip to content

Commit

Permalink
Implement Mage Spell: Conjure Refreshment (#81)
Browse files Browse the repository at this point in the history
* Implement Mage Spell: Conjure Refreshment

* Remove whitespaces.
  • Loading branch information
i-am-fyre authored Nov 26, 2023
1 parent 6463d92 commit 19fc217
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/game/WorldHandlers/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3752,6 +3752,26 @@ void Spell::EffectDummy(SpellEffectEntry const* effect)
m_caster->CastSpell(unitTarget, 38203, true);
}

return;
}
case 42955: // Conjure Refreshment
{
uint32 item = 0;

uint32 level = unitTarget->getLevel();

if (level < 44) { item = 65500; } // Conjured Mana Cookie (lvl 34)
else if (level < 54) { item = 65515; } // Conjured Mana Brownie (lvl 44)
else if (level < 64) { item = 65516; } // Conjured Mana Cupcake (lvl 54)
else if (level < 65) { item = 65517; } // Conjured Mana Lollipop (lvl 64)
else if (level < 74) { item = 34062; } // Conjured Mana Biscuit (lvl 65)
else if (level < 80) { item = 43518; } // Conjured Mana Pie (lvl 74)
else if (level < 85) { item = 43523; } // Conjured Mana Strudel (lvl 80)
else { item = 65499; } // Conjured Mana Cake (lvl 85)

damage = 20; // Used to set stack size.
DoCreateItem(effect,item);

return;
}
}
Expand Down

0 comments on commit 19fc217

Please sign in to comment.