[7227] Implement prismatic sockets. Related code cleanups.

Big thanks to TOM_RUS for help in reseach!
This commit is contained in:
VladimirMangos 2009-02-04 02:06:42 +03:00
parent 2c7216ac8c
commit fdd8176d74
10 changed files with 134 additions and 42 deletions

View file

@ -599,6 +599,7 @@ void Spell::FillTargetMap()
break;
case SPELL_EFFECT_ENCHANT_ITEM:
case SPELL_EFFECT_ENCHANT_ITEM_TEMPORARY:
case SPELL_EFFECT_ENCHANT_ITEM_PRISMATIC:
case SPELL_EFFECT_DISENCHANT:
case SPELL_EFFECT_PROSPECTING:
case SPELL_EFFECT_MILLING:
@ -5066,6 +5067,7 @@ uint8 Spell::CheckItems()
break;
}
case SPELL_EFFECT_ENCHANT_ITEM:
case SPELL_EFFECT_ENCHANT_ITEM_PRISMATIC:
{
Item* targetItem = m_targets.getItemTarget();
if(!targetItem)