/// <summary> /// Indicates that the Player has triggered this script, causing the poison to be applied. /// This poison can only be applied every 4 seconds. /// </summary> /// <param name='player'> /// The Player who has trigged the poison. /// </param> public void trigger(PlayerScript player) { //TODO This should apply a debuff that should damage the player, and automatically wear off after a set duration. if (Time.time > nextTick){ NoxiousBlastDebuff debuff = new NoxiousBlastDebuff(); debuff.refresh(); player.applyDebuff(debuff); nextTick = Time.time + 1; } }