mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Quest API] Add IsAttackAllowed() to Perl/Lua. (#2672)
# Perl - Add `$mob->IsAttackAllowed(target)`. - Add `$mob->IsAttackAllowed(target, is_spell_attack)`. # Lua - Add `mob:IsAttackAllowed(target)`. # Notes - Lua had `mob:IsAttackAllowed(target, is_spell_attack)` but not the other overload. - Perl had neither.
This commit is contained in:
+2
-1
@@ -456,7 +456,6 @@ public:
|
||||
Lua_StatBonuses GetAABonuses();
|
||||
int16 GetMeleeDamageMod_SE(uint16 skill);
|
||||
int16 GetMeleeMinDamageMod_SE(uint16 skill);
|
||||
bool IsAttackAllowed(Lua_Mob target, bool isSpellAttack);
|
||||
bool IsCasting();
|
||||
int AttackAnimation(int Hand, Lua_ItemInst weapon);
|
||||
int GetWeaponDamage(Lua_Mob against, Lua_ItemInst weapon);
|
||||
@@ -520,6 +519,8 @@ public:
|
||||
void DamageHateListNPCsPercentage(int64 damage);
|
||||
void DamageHateListNPCsPercentage(int64 damage, uint32 distance);
|
||||
void CopyHateList(Lua_Mob to);
|
||||
bool IsAttackAllowed(Lua_Mob target);
|
||||
bool IsAttackAllowed(Lua_Mob target, bool is_spell_attack);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user