MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / applyEffect

Method applyEffect

source/creatureeffect/CreatureEffectHeal.cpp:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void CreatureEffectHeal::applyEffect(Creature& creature)
49{
50 if(!creature.isAlive())
51 return;
52
53 if(!creature.isHurt())
54 return;
55
56 creature.heal(mEffectValue);
57}
58
59CreatureEffectHeal* CreatureEffectHeal::load(std::istream& is)
60{

Callers

nothing calls this directly

Calls 3

isAliveMethod · 0.80
isHurtMethod · 0.80
healMethod · 0.80

Tested by

no test coverage detected