Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix infighting infecting player with diseases and poisons
With enemy infighting enabled, a vampire fighting some other monster could infect player directly with vampirism on a successful roll. Same with lycanthropy or any generic disease and poison. This happens because assignment of these infections used player effect manager directly without checking target is player entity or properly use target effect manager. Fix this by check that target monster is fighting is actually player before assigning disease or special infection. Monsters can't catch diseases and are unlikely to persist for the several days required anyway. Fixed poison assignment to always use target effect manager rather than player effect manager. Monsters can be poisoned, and these are fast-acting enough to have a visible outcome during infighting. This will prevent future instances of player being mysteriously infected without actually being hit by a monster.
- Loading branch information