posion passive ability for items

This commit is contained in:
Kaan Soral
2025-03-23 10:57:13 +03:00
parent c2d0cfceab
commit 338193dea9
8 changed files with 27 additions and 12 deletions
+7
View File
@@ -2995,6 +2995,13 @@ function commence_attack(attacker, target, atype) {
) {
info.conditions.push("frozen");
}
if (
info.procs &&
attacker.a.poison &&
Math.random() < (attacker.a.poison.attr0 * (G.maps[attacker.map].poison_multiplier || 1)) / 100.0
) {
info.conditions.push("poisoned");
}
if (
info.procs &&
attacker.a.burn &&