Exemple #1
0
 public Task CastSpellAsync(int id, UnitMetaId target = null)
 {
     return(m_game.LuaExecutor.RunScriptAsync($"CastSpellByID({id.ToString(CultureInfo.InvariantCulture)}" + (target != null ? $", {target})" : ")")));
 }
Exemple #2
0
 public Task CastSpellAsync(string name, UnitMetaId target = null)
 {
     return(m_game.LuaExecutor.RunScriptAsync($"CastSpellByName({name}" + (target != null ? $", {target})" : ")")));
 }