Added action skill mod

This commit is contained in:
Seefo
2014-03-31 22:03:39 -04:00
parent 515cb92ce7
commit f93a7b68db
3 changed files with 18 additions and 2 deletions
+4 -2
View File
@@ -534,11 +534,13 @@ public class ObjectService implements INetworkDispatch {
{
if(object.getAttachment("tempUseCount") != null)
{
int useCount = (int)object.getAttachment("tempUseCount"); // Placeholder until delta for stack count/use count
int useCount = (int)object.getAttachment("tempUseCount"); // Seefo: Placeholder until delta for stack count/use count
if(useCount - 1 == 0) destroyObject(object);
if((useCount - 1) == 0) destroyObject(object);
else object.setAttachment("tempUseCount", useCount--);
}
// Seefo: We need to add cool downs for buff items
core.buffService.addBuffToCreature(creature, object.getStringAttribute("proc_name").replace("@ui_buff:", ""), creature);
}