totem with limited charges that hits an entity as soon as it spawns activates onHit but does not remove a charge
Summary My totem with charges=1 when spawned within range of a mob activates and damages the mob, but does not remove the charge. A totem will use up a charge when it does not onHit on the first tick, normally.
Steps to reproduce Use skill file: https://pastebin.com/PyhrmcNE Spawn a totem under a stationary mob with /mm test cast WSP_Landmine A landmine should appear at the location of the cursor. When the landmine activates after two seconds, it will activate another 'armed' totem. When this totem with one charge spawns, and a mob is in range, it will execute its onHit skill, but will not destroy the totem. Observe as the totem activates and detonates; it does not use up a charge if it explodes on the first tick.
Current behavior Totems can execute their onHit meta-skill on the first tick and not consume a charge.
Intended correct behavior Triggering onHit should always consume a charge,.