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

Method applyEffect

source/creatureeffect/CreatureEffectDefense.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void CreatureEffectDefense::applyEffect(Creature& creature)
49{
50 if(!creature.isAlive())
51 return;
52
53 creature.setDefenseModifier(mPhy, mMag, mEle);
54}
55
56void CreatureEffectDefense::releaseEffect(Creature& creature)
57{

Callers

nothing calls this directly

Calls 2

isAliveMethod · 0.80
setDefenseModifierMethod · 0.80

Tested by

no test coverage detected