mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 13:16:39 +00:00
Merge branch 'master' into aa
This commit is contained in:
+6
-1
@@ -1851,6 +1851,10 @@ int Lua_Mob::CanBuffStack(int spell_id, int caster_level, bool fail_if_overwrite
|
|||||||
return self->CanBuffStack(spell_id, caster_level, fail_if_overwrite);
|
return self->CanBuffStack(spell_id, caster_level, fail_if_overwrite);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Lua_Mob::SetPseudoRoot(bool in) {
|
||||||
|
Lua_Safe_Call_Void();
|
||||||
|
self->SetPseudoRoot(in);
|
||||||
|
}
|
||||||
|
|
||||||
luabind::scope lua_register_mob() {
|
luabind::scope lua_register_mob() {
|
||||||
return luabind::class_<Lua_Mob, Lua_Entity>("Mob")
|
return luabind::class_<Lua_Mob, Lua_Entity>("Mob")
|
||||||
@@ -2168,7 +2172,8 @@ luabind::scope lua_register_mob() {
|
|||||||
.def("BuffFadeBySlot", (void(Lua_Mob::*)(int))&Lua_Mob::BuffFadeBySlot)
|
.def("BuffFadeBySlot", (void(Lua_Mob::*)(int))&Lua_Mob::BuffFadeBySlot)
|
||||||
.def("BuffFadeBySlot", (void(Lua_Mob::*)(int,bool))&Lua_Mob::BuffFadeBySlot)
|
.def("BuffFadeBySlot", (void(Lua_Mob::*)(int,bool))&Lua_Mob::BuffFadeBySlot)
|
||||||
.def("CanBuffStack", (int(Lua_Mob::*)(int,int))&Lua_Mob::CanBuffStack)
|
.def("CanBuffStack", (int(Lua_Mob::*)(int,int))&Lua_Mob::CanBuffStack)
|
||||||
.def("CanBuffStack", (int(Lua_Mob::*)(int,int,bool))&Lua_Mob::CanBuffStack);
|
.def("CanBuffStack", (int(Lua_Mob::*)(int,int,bool))&Lua_Mob::CanBuffStack)
|
||||||
|
.def("SetPseudoRoot", (void(Lua_Mob::*)(bool))&Lua_Mob::SetPseudoRoot);
|
||||||
}
|
}
|
||||||
|
|
||||||
luabind::scope lua_register_special_abilities() {
|
luabind::scope lua_register_special_abilities() {
|
||||||
|
|||||||
@@ -352,6 +352,7 @@ public:
|
|||||||
void BuffFadeBySlot(int slot, bool recalc_bonuses);
|
void BuffFadeBySlot(int slot, bool recalc_bonuses);
|
||||||
int CanBuffStack(int spell_id, int caster_level);
|
int CanBuffStack(int spell_id, int caster_level);
|
||||||
int CanBuffStack(int spell_id, int caster_level, bool fail_if_overwrite);
|
int CanBuffStack(int spell_id, int caster_level, bool fail_if_overwrite);
|
||||||
|
void SetPseudoRoot(bool in);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+1
-1
@@ -615,7 +615,7 @@ int Mob::_GetWalkSpeed() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int Mob::_GetRunSpeed() const {
|
int Mob::_GetRunSpeed() const {
|
||||||
if (IsRooted() || IsStunned() || IsMezzed())
|
if (IsRooted() || IsStunned() || IsMezzed() || IsPseudoRooted())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
int aa_mod = 0;
|
int aa_mod = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user