Permalink
Browse files

Effect: also store SpellLevel for iwd2 use

  • Loading branch information...
1 parent cb56cc2 commit a1a85122ee5236394e30a58c24165051ada998df @lynxlynxlynx lynxlynxlynx committed Jan 12, 2014
Showing with 3 additions and 0 deletions.
  1. +2 −0 gemrb/core/Effect.h
  2. +1 −0 gemrb/core/Spell.cpp
View
@@ -130,6 +130,8 @@ struct Effect {
ieDword CasterID; //10c in bg2 (not saved?)
// These are not in the IE files, but are our precomputed values
ieDword random_value;
+
+ ieDword SpellLevel; // Power does not always contain the Source level, which is needed in iwd2; items will be left at 0
public:
//don't modify position in case it was already set
void SetPosition(const Point &p) {
View
@@ -215,6 +215,7 @@ EffectQueue *Spell::GetEffectBlock(Scriptable *self, const Point &pos, int block
fx->SourceFlags|=SF_HOSTILE;
}
fx->CasterLevel = level;
+ fx->SpellLevel = SpellLevel;
// apply the stat-based spell duration modifier
if (self->Type == ST_ACTOR) {

0 comments on commit a1a8512

Please sign in to comment.