[9501] Implement item limit category inventory mode.

* Now expected item limit categories (for example for item 5513 and related)
  correctly limited by its amount in inventory.
* Provide and use additional arg in SendEquipError for alt. way get affected
  item prototype. This let send to function item id and prevent crash client at
  limit category equip errors that required item prototype data.
This commit is contained in:
VladimirMangos 2010-03-02 14:04:47 +03:00
parent 52ace6bcb7
commit c71f79584d
16 changed files with 137 additions and 56 deletions

View file

@ -3192,7 +3192,7 @@ void Spell::DoCreateItem(SpellEffectIndex eff_idx, uint32 itemtype)
else
{
// if not created by another reason from full inventory or unique items amount limitation
player->SendEquipError( msg, NULL, NULL );
player->SendEquipError( msg, NULL, NULL, newitemid );
return;
}
}