- summary: Removes one buff or debuff from a fighter, as a step of the fight action being played.
- area: Game.Fight
Removes one buff or debuff from a fighter, as a step of the fight action being played.
Kind event · Area Game.Fight
Takes ONE fight effect (buff or debuff) away from a fighter. It is the counterpart of FightBoostAddEvent:
that one adds a buff as a step of the current action, this one removes one the same way.
WHAT TO DO WHEN YOU RECEIVE IT
1. Find the fighter FightBoostRemoveEvent.target_id and, on it, the buff whose id is FightBoostRemoveEvent.buff_id: the uid the buff
was created with (FightRemovableEffect.uid in FightBoostAddEvent, FightBoostSynchronizeEvent or a
fight join).
2. Remove it IN ORDER with the other events of the action being played (between SequenceStartEvent and
SequenceEndEvent): it is one step of that action, not an immediate change.
3. A buff id you do not hold changes nothing; a negative buff id means "no buff".
4. SEND NOTHING BACK.
EXAMPLE. buff_id 2, target_id -1: remove buff #2 from fighter -1 (a negative id is not a player; it is usually a monster).
WHAT THE OFFICIAL CLIENT DOES
The fight sequence service turns buff_id into a BuffId (a negative value gives the 'none' id) and queues a removal step holding (target_id, BuffId). When the step plays, it looks the buff up on that fighter; if it exists, the buff's end sequence plays first; then the buff is removed from the fighter and the fight UI is refreshed. If the buff is not found, the step just removes nothing and ends.
RELATED
- FightBoostAddEvent: adds one buff, as a step of the current action.
- FightBoostSynchronizeEvent: the full buff list; it adds, updates and removes buffs at once, immediately.
- GameActionFightEvent.effect_remove / GameActionFightEvent.spell_remove: removals that a fight
action itself carries (dispels).
When you may send it
- Requires
character_loadedinferred - Raised by: a buff of a fighter ends on the server (its duration runs out, it is dispelled or consumed) inferred
Related messages
- Unsolicited - nothing you send causes this observed — pushed by the server during a fight (seen in a 3.7.10.10 capture); no request asks for it
- Nothing answers it - send it and move on inferred — the client only removes the buff; nothing is sent back
Fields
| # | Field | Type | Meaning | You set it |
|---|---|---|---|---|
| 1 | buff_id | int32 | The buff to remove: its uid. (buff uid) The uid the buff was created with; a negative value means no buff. | never |
| 2 | target_id | int64 | The fighter carrying the buff. (fighter (entity) id) | never |