Immunity Spell Type is int8 no int16 support
This commit is contained in:
parent
31f8d2fb14
commit
4ee282c460
@ -3267,7 +3267,7 @@ bool Entity::IsDazeImmune(){
|
|||||||
return (immunities[IMMUNITY_TYPE_DAZE] && immunities[IMMUNITY_TYPE_DAZE]->size(true) > 0);
|
return (immunities[IMMUNITY_TYPE_DAZE] && immunities[IMMUNITY_TYPE_DAZE]->size(true) > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Entity::AddImmunity(LuaSpell* spell, int16 type){
|
void Entity::AddImmunity(LuaSpell* spell, int8 type){
|
||||||
if (!spell)
|
if (!spell)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -3277,7 +3277,7 @@ void Entity::AddImmunity(LuaSpell* spell, int16 type){
|
|||||||
immunities[type]->Add(spell);
|
immunities[type]->Add(spell);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Entity::RemoveImmunity(LuaSpell* spell, int16 type){
|
void Entity::RemoveImmunity(LuaSpell* spell, int8 type){
|
||||||
MutexList<LuaSpell*>* list = immunities[type];
|
MutexList<LuaSpell*>* list = immunities[type];
|
||||||
if (!list || list->size(true) == 0)
|
if (!list || list->size(true) == 0)
|
||||||
return;
|
return;
|
||||||
@ -3285,7 +3285,7 @@ void Entity::RemoveImmunity(LuaSpell* spell, int16 type){
|
|||||||
list->Remove(spell);
|
list->Remove(spell);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Entity::IsImmune(int16 type){
|
bool Entity::IsImmune(int8 type){
|
||||||
return (immunities[type] && immunities[type]->size(true) > 0);
|
return (immunities[type] && immunities[type]->size(true) > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1899,9 +1899,9 @@ public:
|
|||||||
void AddDazeImmunity(LuaSpell* spell);
|
void AddDazeImmunity(LuaSpell* spell);
|
||||||
void RemoveDazeImmunity(LuaSpell* spell);
|
void RemoveDazeImmunity(LuaSpell* spell);
|
||||||
bool IsDazeImmune();
|
bool IsDazeImmune();
|
||||||
void AddImmunity(LuaSpell* spell, int16 type);
|
void AddImmunity(LuaSpell* spell, int8 type);
|
||||||
void RemoveImmunity(LuaSpell* spell, int16 type);
|
void RemoveImmunity(LuaSpell* spell, int8 type);
|
||||||
bool IsImmune(int16 type);
|
bool IsImmune(int8 type);
|
||||||
void AddFlightSpell(LuaSpell* spell);
|
void AddFlightSpell(LuaSpell* spell);
|
||||||
void RemoveFlightSpell(LuaSpell* spell);
|
void RemoveFlightSpell(LuaSpell* spell);
|
||||||
void AddSafefallSpell(LuaSpell* spell);
|
void AddSafefallSpell(LuaSpell* spell);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user