mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-15 02:39:29 -05:00
posion passive ability for items
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user