Quantcast

Rogue: Don't suggest MfD out of combat if weapons are missing poisons.

Johnny C. Lam [12-10-14 - 17:17]
Rogue: Don't suggest MfD out of combat if weapons are missing poisons.
Filename
scripts/ovale_rogue.lua
diff --git a/scripts/ovale_rogue.lua b/scripts/ovale_rogue.lua
index b255c4e..8ab9444 100644
--- a/scripts/ovale_rogue.lua
+++ b/scripts/ovale_rogue.lua
@@ -167,7 +167,8 @@ AddFunction AssassinationPrecombatActions

 AddFunction AssassinationPrecombatShortCdActions
 {
-	unless BuffExpires(stealthed_buff any=1) and Spell(stealth)
+	unless BuffRemaining(lethal_poison_buff) < 1200 and Spell(deadly_poison)
+		or BuffExpires(stealthed_buff any=1) and Spell(stealth)
 	{
 		#marked_for_death
 		Spell(marked_for_death)
@@ -362,7 +363,8 @@ AddFunction CombatPrecombatActions

 AddFunction CombatPrecombatShortCdActions
 {
-	unless BuffExpires(stealthed_buff any=1) and Spell(stealth)
+	unless BuffRemaining(lethal_poison_buff) < 1200 and Spell(deadly_poison)
+		or BuffExpires(stealthed_buff any=1) and Spell(stealth)
 	{
 		#marked_for_death
 		Spell(marked_for_death)