23 lines
396 B
C++
23 lines
396 B
C++
#include "precompile.h"
|
|
|
|
#include "buff/immune.h"
|
|
|
|
#include "creature.h"
|
|
#include "ability.h"
|
|
|
|
#include "mt/Buff.h"
|
|
|
|
void ImmuneBuff::Activate()
|
|
{
|
|
for (int tag : meta->_buff_param1_int_list) {
|
|
owner->GetAbility()->IncImmuneTimes(tag);
|
|
}
|
|
}
|
|
|
|
void ImmuneBuff::Deactivate()
|
|
{
|
|
for (int tag : meta->_buff_param1_int_list) {
|
|
owner->GetAbility()->DecImmuneTimes(tag);
|
|
}
|
|
}
|