Revert some of 809e601945
This commit is contained in:
@@ -128,24 +128,5 @@ namespace Game.AI
|
||||
}
|
||||
return new NullGameObjectAI(go);
|
||||
}
|
||||
|
||||
public static SpellScript SelectSpellScript(Spell spell)
|
||||
{
|
||||
var holder = Global.SmartAIMgr.GetScript((int)spell.GetSpellInfo().Id, SmartScriptType.Spell);
|
||||
if (holder.Empty())
|
||||
return null;
|
||||
|
||||
var script = new SmartSpell();
|
||||
|
||||
script._Init("", spell.GetSpellInfo().Id);
|
||||
if (!script._Load(spell))
|
||||
return null;
|
||||
|
||||
script._Register();
|
||||
if (!script._Validate(spell.GetSpellInfo()))
|
||||
return null;
|
||||
|
||||
return script;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user