Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case "kill":
- HashSet<string> damageType = new HashSet<string>() { arg };
- foreach (var actor in world.Selection.Actors)
- {
- if (actor.IsDead)
- continue;
- var health = actor.TraitOrDefault<Health>();
- if (health != null)
- health.InflictDamage(actor, actor, new Damage(health.HP, damageType), true);
- }
- // For Test
- Game.Debug("{0}", arg);
- break;
Add Comment
Please, Sign In to add comment