As soon as summoned, the creature unsommons. Help?
'>
object oPC = GetPCSpeaker();
object oStatue = GetNearestObjectByTag("Statue");
location lLocation = GetLocation(oPC);
string sResRef = GetLocalString(oStatue, "resref");
int nSorcerer = GetLevelByClass(CLASS_TYPE_SORCERER, oPC);
int nWizard = GetLevelByClass(CLASS_TYPE_WIZARD, oPC);
int nDuration = nSorcerer + nWizard * 2;
DestroyObject(oStatue);
effect eSummon = EffectSummonCreature(sResRef, 135, 0.0, 0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eSummon, oPC, TurnsToSeconds(nDuration));
AssignCommand(oPC,ActionCastFakeSpellAtObject(SPELL_IMPROVED_INVISIBILITY, oPC));
}