Merged in skeletonhorn/ffxiv-classic-server-ai-fork/ai-open (pull request #1)

equip ability functions
This commit is contained in:
yogurt 2017-07-11 19:52:04 +00:00 committed by Tahir Akhlaq
commit 3734f22fc2
8 changed files with 378 additions and 102 deletions

View file

@ -421,16 +421,16 @@ namespace FFXIVClassic_Map_Server.lua
}
else
CallLuaFunction(player, target, "onEventStarted", false, LuaUtils.CreateLuaParamObjectList(lparams));
}
}
public DynValue ResolveResume(Actor actor, Coroutine coroutine, DynValue value)
public DynValue ResolveResume(Actor actor, Coroutine coroutine, DynValue value)
{
var isPlayer = actor is Player;
if (value == null || value.IsVoid())
return value;
if (isPlayer && value.String != null && value.String.Equals("_WAIT_EVENT"))
if (isPlayer && value.String != null && value.String.Equals("_WAIT_EVENT"))
{
GetInstance().AddWaitEventCoroutine((Player)actor, coroutine);
}