# Status Effect Stacking Analyzer AI Agent Connect

> A deterministic engine for calculating complex status effect interactions and stacking.

## Overview
- **Category:** gaming
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_GhVOj1Hn5Z76NxbmP7LGYfzgNNSlMHHrIKJiZIiR/ai-agent-connect
- **Tags:** combat, status-effects, game-design, deterministic, simulation-engine

## Description

This MCP server provides a high-precision engine for combat simulation. It calculates how status effects like `burn`, `stun`, or `freeze` interact using specific stacking rules such as Refresh, Extend, or Add Intensity. Use `analyze_active_effects` to determine final intensities and total DPS, `calculate_optimal_rotation` to find the best sequence for maximizing duration, and `check_immunity_status` to track target resistances. It handles complex synergies, diminishing returns, and intensity caps for precise combat modeling.

## Tools

### analyze_active_effects
Performs the core calculation of current status states, including intensities, durations, and total damage/utility

### calculate_optimal_rotation
Determines the most efficient sequence to apply a set of intended effects to maximize duration

### check_immunity_status
Determines if a target is currently immune to specific effect types based on recent interactions

## Prompt Examples

**Prompt:** 
```
Analyze these active effects: burn (intensity 5, duration 10s, rule: extend) and burn (intensity 5, duration 5s, rule: extend).
```

**Response:** 
```
The final intensity for burn is 10 and the total duration is 15 seconds.
```

**Prompt:** 
```
What is the best rotation for applying stun, freeze, and slow if they all use the refresh rule?
```

**Response:** 
```
The optimal rotation is to apply the effect with the longest duration last to maximize the total duration.
```

**Prompt:** 
```
Is the target immune to stun after being stunned 2 seconds ago?
```

**Response:** 
```
The target is currently immune to stun for 3 more seconds.
```

## Frequently Asked Questions

**How do I calculate the total damage from active effects?**
You can use the `analyze_active_effects` tool. It will return the `totalDpsFromEffects` which is the sum of all damage-per-second derived from active effects.

**Can I find the best order to apply effects?**
Yes, use the `calculate_optimal_rotation` tool. It analyzes your intended effects and stacking rules to provide the most efficient sequence.

**How does the engine handle immunity?**
The `check_immunity_status` tool allows you to determine if a target is immune to specific effects based on their recent history and defined immunity rules.
