Przeglądaj źródła

Triple Attack vs. Plant Mode (#8403)

- Triple Attack will now deal 3 damage to monsters with plant mode (infinite defense)
Playtester 11 miesięcy temu
rodzic
commit
e8f1c7f9e7
1 zmienionych plików z 9 dodań i 0 usunięć
  1. 9 0
      src/map/battle.cpp

+ 9 - 0
src/map/battle.cpp

@@ -6795,6 +6795,15 @@ static void battle_calc_attack_plant(struct Damage* wd, struct block_list *src,s
 		return;
 	}
 
+	// Triple Attack has a special property that it does not split damage on plant mode
+	// In pre-renewal, it requires the monster to have exactly 100 def
+	if (skill_id == MO_TRIPLEATTACK && wd->div_ < 0
+#ifndef RENEWAL
+		&& tstatus->def == 100
+#endif
+		)
+		wd->div_ *= -1;
+
 	//For plants we don't continue with the weapon attack code, so we have to apply DAMAGE_DIV_FIX here
 	battle_apply_div_fix(wd, skill_id);