Skip to content

Supernatural Effects getting removed onRest

badstrrefbadstrref Member Posts: 124
edited December 2018 in Technical Support


1/ Rest removes supernatural effects with DURATION_TYPE_TEMPORARY

ApplyEffectToObject(1, eHaste, oPC, fDuration); // Gets removed on Rest

2/ Rest doesn't remove supernatural effects with DURATION_TYPE_PERMANENT (as intended)
ApplyEffectToObject(2, eDmg, oPC); // Remains after rest

My onRest script is empty atm.

void main()
{
    object oPC = GetLastPCRested();

    switch (GetLastRestEventType())
    {
        case REST_EVENTTYPE_REST_STARTED :
             break;
        case REST_EVENTTYPE_REST_CANCELLED :
             break;
        case REST_EVENTTYPE_REST_FINISHED :
             break;
        case REST_EVENTTYPE_REST_INVALID :
             break;
    }
}
Tested on my current module, on another mod, and on empty mod.

Post edited by badstrref on

Comments

  • JuliusBorisovJuliusBorisov Member, Administrator, Moderator, Developer Posts: 22,754
    Hello! Make sure to report this on the bug tracker so that it could be tracked internally.
Sign In or Register to comment.