View Single Post
  #3  
Old 02-24-2010, 02:38 PM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

Also, not that anyone would have one yet, but the higher pet focus items summon pets with the high level cloaks with mod2s, including strikethrough. Here's a patch for that.

Code:
--- attack.cpp	(revision 1189)
+++ attack.cpp	(working copy)
@@ -1755,6 +1755,13 @@
 			//pets do half damage to clients in pvp
 			damage=damage/2;
 		}
+
+		if ((damage < 0) && !bRiposte) { 
+			if(MakeRandomInt(0, 100) < (itembonuses.StrikeThrough + spellbonuses.StrikeThrough)) {
+				Attack(other, Hand, true); // Strikethrough only gives another attempted hit
+				return false;
+			}
+		}
 	}
 	else
 		damage = -5;
This is assuming npcs can strikethrough as well.. If not, change with
Code:
--- attack.cpp	(revision 1189)
+++ attack.cpp	(working copy)
@@ -1755,6 +1755,16 @@
 			//pets do half damage to clients in pvp
 			damage=damage/2;
 		}
+
+		if(IsPet())
+		{
+			if ((damage < 0) && !bRiposte) { 
+				if(MakeRandomInt(0, 100) < (itembonuses.StrikeThrough + spellbonuses.StrikeThrough)) {
+					Attack(other, Hand, true); // Strikethrough only gives another attempted hit
+					return false;
+				}
+			}
+		}
 	}
 	else
 		damage = -5;
Reply With Quote