mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 05:08:26 +00:00
[Quest API] Added NPC special ability to modify Riposte/Dodge/Parry/Block chance (#1683)
* Update attack.cpp * u * Update attack.cpp * spellchecked
This commit is contained in:
+54
-52
@@ -2841,58 +2841,60 @@ luabind::scope lua_register_mob() {
|
||||
|
||||
luabind::scope lua_register_special_abilities() {
|
||||
return luabind::class_<SpecialAbilities>("SpecialAbility")
|
||||
.enum_("constants")
|
||||
[
|
||||
luabind::value("summon", static_cast<int>(SPECATK_SUMMON)),
|
||||
luabind::value("enrage", static_cast<int>(SPECATK_ENRAGE)),
|
||||
luabind::value("rampage", static_cast<int>(SPECATK_RAMPAGE)),
|
||||
luabind::value("area_rampage", static_cast<int>(SPECATK_AREA_RAMPAGE)),
|
||||
luabind::value("flurry", static_cast<int>(SPECATK_FLURRY)),
|
||||
luabind::value("triple_attack", static_cast<int>(SPECATK_TRIPLE)),
|
||||
luabind::value("quad_attack", static_cast<int>(SPECATK_QUAD)),
|
||||
luabind::value("innate_dual_wield", static_cast<int>(SPECATK_INNATE_DW)),
|
||||
luabind::value("bane_attack", static_cast<int>(SPECATK_BANE)),
|
||||
luabind::value("magical_attack", static_cast<int>(SPECATK_MAGICAL)),
|
||||
luabind::value("ranged_attack", static_cast<int>(SPECATK_RANGED_ATK)),
|
||||
luabind::value("unslowable", static_cast<int>(UNSLOWABLE)),
|
||||
luabind::value("unmezable", static_cast<int>(UNMEZABLE)),
|
||||
luabind::value("uncharmable", static_cast<int>(UNCHARMABLE)),
|
||||
luabind::value("unstunable", static_cast<int>(UNSTUNABLE)),
|
||||
luabind::value("unsnareable", static_cast<int>(UNSNAREABLE)),
|
||||
luabind::value("unfearable", static_cast<int>(UNFEARABLE)),
|
||||
luabind::value("undispellable", static_cast<int>(UNDISPELLABLE)),
|
||||
luabind::value("immune_melee", static_cast<int>(IMMUNE_MELEE)),
|
||||
luabind::value("immune_magic", static_cast<int>(IMMUNE_MAGIC)),
|
||||
luabind::value("immune_fleeing", static_cast<int>(IMMUNE_FLEEING)),
|
||||
luabind::value("immune_melee_except_bane", static_cast<int>(IMMUNE_MELEE_EXCEPT_BANE)),
|
||||
luabind::value("immune_melee_except_magical", static_cast<int>(IMMUNE_MELEE_NONMAGICAL)),
|
||||
luabind::value("immune_aggro", static_cast<int>(IMMUNE_AGGRO)),
|
||||
luabind::value("immune_aggro_on", static_cast<int>(IMMUNE_AGGRO_ON)),
|
||||
luabind::value("immune_casting_from_range", static_cast<int>(IMMUNE_CASTING_FROM_RANGE)),
|
||||
luabind::value("immune_feign_death", static_cast<int>(IMMUNE_FEIGN_DEATH)),
|
||||
luabind::value("immune_taunt", static_cast<int>(IMMUNE_TAUNT)),
|
||||
luabind::value("tunnelvision", static_cast<int>(NPC_TUNNELVISION)),
|
||||
luabind::value("dont_buff_friends", static_cast<int>(NPC_NO_BUFFHEAL_FRIENDS)),
|
||||
luabind::value("immune_pacify", static_cast<int>(IMMUNE_PACIFY)),
|
||||
luabind::value("leash", static_cast<int>(LEASH)),
|
||||
luabind::value("tether", static_cast<int>(TETHER)),
|
||||
luabind::value("destructible_object", static_cast<int>(DESTRUCTIBLE_OBJECT)),
|
||||
luabind::value("no_harm_from_client", static_cast<int>(NO_HARM_FROM_CLIENT)),
|
||||
luabind::value("always_flee", static_cast<int>(ALWAYS_FLEE)),
|
||||
luabind::value("flee_percent", static_cast<int>(FLEE_PERCENT)),
|
||||
luabind::value("allow_beneficial", static_cast<int>(ALLOW_BENEFICIAL)),
|
||||
luabind::value("disable_melee", static_cast<int>(DISABLE_MELEE)),
|
||||
luabind::value("npc_chase_distance", static_cast<int>(NPC_CHASE_DISTANCE)),
|
||||
luabind::value("allow_to_tank", static_cast<int>(ALLOW_TO_TANK)),
|
||||
luabind::value("ignore_root_aggro_rules", static_cast<int>(IGNORE_ROOT_AGGRO_RULES)),
|
||||
luabind::value("casting_resist_diff", static_cast<int>(CASTING_RESIST_DIFF)),
|
||||
luabind::value("counter_avoid_damage", static_cast<int>(COUNTER_AVOID_DAMAGE)),
|
||||
luabind::value("immune_ranged_attacks", static_cast<int>(IMMUNE_RANGED_ATTACKS)),
|
||||
luabind::value("immune_damage_client", static_cast<int>(IMMUNE_DAMAGE_CLIENT)),
|
||||
luabind::value("immune_damage_npc", static_cast<int>(IMMUNE_DAMAGE_NPC)),
|
||||
luabind::value("immune_aggro_client", static_cast<int>(IMMUNE_AGGRO_CLIENT)),
|
||||
luabind::value("immune_aggro_npc", static_cast<int>(IMMUNE_AGGRO_NPC))
|
||||
];
|
||||
|
||||
.enum_("constants")
|
||||
[
|
||||
luabind::value("summon", static_cast<int>(SPECATK_SUMMON)),
|
||||
luabind::value("enrage", static_cast<int>(SPECATK_ENRAGE)),
|
||||
luabind::value("rampage", static_cast<int>(SPECATK_RAMPAGE)),
|
||||
luabind::value("area_rampage", static_cast<int>(SPECATK_AREA_RAMPAGE)),
|
||||
luabind::value("flurry", static_cast<int>(SPECATK_FLURRY)),
|
||||
luabind::value("triple_attack", static_cast<int>(SPECATK_TRIPLE)),
|
||||
luabind::value("quad_attack", static_cast<int>(SPECATK_QUAD)),
|
||||
luabind::value("innate_dual_wield", static_cast<int>(SPECATK_INNATE_DW)),
|
||||
luabind::value("bane_attack", static_cast<int>(SPECATK_BANE)),
|
||||
luabind::value("magical_attack", static_cast<int>(SPECATK_MAGICAL)),
|
||||
luabind::value("ranged_attack", static_cast<int>(SPECATK_RANGED_ATK)),
|
||||
luabind::value("unslowable", static_cast<int>(UNSLOWABLE)),
|
||||
luabind::value("unmezable", static_cast<int>(UNMEZABLE)),
|
||||
luabind::value("uncharmable", static_cast<int>(UNCHARMABLE)),
|
||||
luabind::value("unstunable", static_cast<int>(UNSTUNABLE)),
|
||||
luabind::value("unsnareable", static_cast<int>(UNSNAREABLE)),
|
||||
luabind::value("unfearable", static_cast<int>(UNFEARABLE)),
|
||||
luabind::value("undispellable", static_cast<int>(UNDISPELLABLE)),
|
||||
luabind::value("immune_melee", static_cast<int>(IMMUNE_MELEE)),
|
||||
luabind::value("immune_magic", static_cast<int>(IMMUNE_MAGIC)),
|
||||
luabind::value("immune_fleeing", static_cast<int>(IMMUNE_FLEEING)),
|
||||
luabind::value("immune_melee_except_bane", static_cast<int>(IMMUNE_MELEE_EXCEPT_BANE)),
|
||||
luabind::value("immune_melee_except_magical", static_cast<int>(IMMUNE_MELEE_NONMAGICAL)),
|
||||
luabind::value("immune_aggro", static_cast<int>(IMMUNE_AGGRO)),
|
||||
luabind::value("immune_aggro_on", static_cast<int>(IMMUNE_AGGRO_ON)),
|
||||
luabind::value("immune_casting_from_range", static_cast<int>(IMMUNE_CASTING_FROM_RANGE)),
|
||||
luabind::value("immune_feign_death", static_cast<int>(IMMUNE_FEIGN_DEATH)),
|
||||
luabind::value("immune_taunt", static_cast<int>(IMMUNE_TAUNT)),
|
||||
luabind::value("tunnelvision", static_cast<int>(NPC_TUNNELVISION)),
|
||||
luabind::value("dont_buff_friends", static_cast<int>(NPC_NO_BUFFHEAL_FRIENDS)),
|
||||
luabind::value("immune_pacify", static_cast<int>(IMMUNE_PACIFY)),
|
||||
luabind::value("leash", static_cast<int>(LEASH)),
|
||||
luabind::value("tether", static_cast<int>(TETHER)),
|
||||
luabind::value("destructible_object", static_cast<int>(DESTRUCTIBLE_OBJECT)),
|
||||
luabind::value("no_harm_from_client", static_cast<int>(NO_HARM_FROM_CLIENT)),
|
||||
luabind::value("always_flee", static_cast<int>(ALWAYS_FLEE)),
|
||||
luabind::value("flee_percent", static_cast<int>(FLEE_PERCENT)),
|
||||
luabind::value("allow_beneficial", static_cast<int>(ALLOW_BENEFICIAL)),
|
||||
luabind::value("disable_melee", static_cast<int>(DISABLE_MELEE)),
|
||||
luabind::value("npc_chase_distance", static_cast<int>(NPC_CHASE_DISTANCE)),
|
||||
luabind::value("allow_to_tank", static_cast<int>(ALLOW_TO_TANK)),
|
||||
luabind::value("ignore_root_aggro_rules", static_cast<int>(IGNORE_ROOT_AGGRO_RULES)),
|
||||
luabind::value("casting_resist_diff", static_cast<int>(CASTING_RESIST_DIFF)),
|
||||
luabind::value("counter_avoid_damage", static_cast<int>(COUNTER_AVOID_DAMAGE)),
|
||||
luabind::value("immune_ranged_attacks", static_cast<int>(IMMUNE_RANGED_ATTACKS)),
|
||||
luabind::value("immune_damage_client", static_cast<int>(IMMUNE_DAMAGE_CLIENT)),
|
||||
luabind::value("immune_damage_npc", static_cast<int>(IMMUNE_DAMAGE_NPC)),
|
||||
luabind::value("immune_aggro_client", static_cast<int>(IMMUNE_AGGRO_CLIENT)),
|
||||
luabind::value("immune_aggro_npc", static_cast<int>(IMMUNE_AGGRO_NPC)),
|
||||
luabind::value("modify_avoid_damage", static_cast<int>(MODIFY_AVOID_DAMAGE))
|
||||
];
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user