game2006/server/gameserver/buff/camouflage.cc
aozhiwei b086b5219c 1
2023-03-22 13:33:45 +08:00

27 lines
424 B
C++

#include "precompile.h"
#include "buff/camouflage.h"
#include "creature.h"
#include "human.h"
#include "stats.h"
void CamouflageBuff::Activate()
{
if (owner->aiming) {
owner->aiming = false;
}
if (owner->action_type != AT_None) {
owner->CancelAction();
}
if (owner->IsHuman()) {
++owner->AsHuman()->stats->use_camouflage_times;
}
}
void CamouflageBuff::Deactivate()
{
}