InvalidateSpellVM removes the cached VM for a spell so the next call reloads the script from disk. Call this after saving a spell script via the admin API.
(spellId string)
| 29 | // InvalidateSpellVM removes the cached VM for a spell so the next call reloads |
| 30 | // the script from disk. Call this after saving a spell script via the admin API. |
| 31 | func InvalidateSpellVM(spellId string) { |
| 32 | delete(spellVMCache, spellId) |
| 33 | } |
| 34 | |
| 35 | func TrySpellScriptEvent(eventName string, sourceUserId int, sourceMobInstanceId int, spellAggro characters.SpellAggroInfo) (bool, error) { |
| 36 |
no test coverage detected