2025/07/20 Update

Updated PEPS AI.
Full compile.
This commit is contained in:
Jaysyn904
2025-07-20 16:17:47 -04:00
parent d2a9c50615
commit b4f69b222a
100 changed files with 925 additions and 655 deletions

View File

@@ -10,10 +10,10 @@
void main()
{
object oCreature = OBJECT_SELF;
ExecuteScript("prc_npc_spellat", oCreature);
object oCaster = GetLastSpellCaster();
SetLocalObject(oCaster, AI_ATTACKED_SPELL, oCreature);
if(ai_Disabled(oCreature)) return;
ExecuteScript("prc_npc_spellat", OBJECT_SELF);
if(!GetLastSpellHarmful()) return;
// Send the user-defined event as appropriate
if(GetSpawnInCondition(NW_FLAG_SPELL_CAST_AT_EVENT))