View Single Post
  #1  
Old 07-27-2012, 11:42 AM
dpjaf4t
Fire Beetle
 
Join Date: May 2010
Posts: 21
Default Bot Attack min damage error

Kept getting a compile error about unable to add pointers on bot.cpp; this fixes it (TSVN patch format):

Code:
Index: zone/bot.cpp
===================================================================
--- zone/bot.cpp	(revision 2173)
+++ zone/bot.cpp	(working copy)
@@ -7696,1 +7696,1 @@
-		min_hit = min_hit * (100 + itembonuses.MinDamageModifier + spellbonuses.MinDamageModifier) / 100;
+		min_hit = min_hit * (100 + itembonuses.MinDamageModifier[skillinuse] + spellbonuses.MinDamageModifier[skillinuse]) / 100;
Reply With Quote