mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 23:20:25 +00:00
Replaced npcspecialatk with special_attacks, needs more testing also gotta export new api for it as I can't remove the legacy one. Too many quests rely on the legacy functionality.
This commit is contained in:
+8
-1
@@ -330,7 +330,14 @@ void Trap::CreateHiddenTrigger()
|
||||
make_npc->d_meele_texture2 = 0;
|
||||
make_npc->trackable = 0;
|
||||
make_npc->level = level;
|
||||
strcpy(make_npc->npc_attacks, "ABHG");
|
||||
make_npc->special_abilities = itoa(IMMUNE_MELEE);
|
||||
make_npc->special_abilities += std::string(",1^");
|
||||
make_npc->special_abilities += itoa(IMMUNE_MAGIC);
|
||||
make_npc->special_abilities += std::string(",1^");
|
||||
make_npc->special_abilities += itoa(IMMUNE_AGGRO);
|
||||
make_npc->special_abilities += std::string(",1^");
|
||||
make_npc->special_abilities += itoa(IMMUNE_AGGRO_ON);
|
||||
make_npc->special_abilities += std::string(",1");
|
||||
NPC* npca = new NPC(make_npc, 0, x, y, z, 0, FlyMode3);
|
||||
npca->GiveNPCTypeData(make_npc);
|
||||
entity_list.AddNPC(npca);
|
||||
|
||||
Reference in New Issue
Block a user