diff options
author | megamage <none@none> | 2009-01-03 11:06:51 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-03 11:06:51 -0600 |
commit | 9438625a19c070ec20d392fa57f1de6a61b7b985 (patch) | |
tree | e4d7fc1ea493a8fb86bd4729b5c6940a2c771d27 /src/game/Spell.cpp | |
parent | a1a52b710c6563105d1c24112b1fa2699f3fbdfe (diff) |
[7015] Implement support -1 in item_template.stackable and item_template.maxcount fields. By VladimirMangos.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 3019b67b853..d48294a77a1 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -3160,7 +3160,7 @@ void Spell::TakeCastItem() if (charges) { (charges > 0) ? --charges : ++charges; // abs(charges) less at 1 after use - if (proto->Stackable < 2) + if (proto->Stackable == 1) m_CastItem->SetSpellCharges(i, charges); m_CastItem->SetState(ITEM_CHANGED, (Player*)m_caster); } |