Skip to content

rq.MagicCtx ​

since 2.1.0

What rq.combat.on_magic gets for one spell.

Fields ​

NameTypeDescription
attackerintegerThe attacker's roster slot.
defenderintegerThe defender's roster slot.
skillintegerThe skill number.
damageintegerThe final damage the game worked out, before any percent.
magicintegerThe attacker's magic.
raceintegerThe defender's race (rq.ids.race); 8 is a hanny.
defender_typeintegerThe defender's type (Cタイプ); 22 is humanoid.
forecastbooleantrue when the game only works out the battle forecast (rq.battle.on_forecast), not a real hit: count nothing and roll no dice then. Since 2.26.0.

Used by ​

rq.StatusDef, rq.combat.on_magic