Skip to content
Browse files

Core/Spells: Correct a check in IsLootCrafting, allows Prismatic Blac…

…k Diamond to be fixed (a very peculiar spell...)

The following conversation led to this fix: http://paste2.org/p/2816385 (for reference)
  • Loading branch information...
1 parent b539a97 commit 0e945613d0a4bf120b6242106adb26ed1e288228 @DDuarte DDuarte committed Feb 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/server/game/Spells/SpellInfo.cpp
View
2 src/server/game/Spells/SpellInfo.cpp
@@ -849,7 +849,7 @@ bool SpellInfo::IsLootCrafting() const
return (Effects[0].Effect == SPELL_EFFECT_CREATE_RANDOM_ITEM ||
// different random cards from Inscription (121==Virtuoso Inking Set category) r without explicit item
(Effects[0].Effect == SPELL_EFFECT_CREATE_ITEM_2 &&
- (TotemCategory[0] != 0 || Effects[0].ItemType == 0)));
+ ((TotemCategory[0] != 0 || (Totem[0] != 0 && SpellIconID == 1)) || Effects[0].ItemType == 0)));
}
bool SpellInfo::IsQuestTame() const

0 comments on commit 0e94561

Please sign in to comment.
Something went wrong with that request. Please try again.