27 lines
424 B
C++
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()
|
|
{
|
|
|
|
}
|