From: Ondrej H. <tan...@us...> - 2004-10-30 15:06:11
|
Update of /cvsroot/planeshift/planeshift/src/server/bulkobjects In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21587/src/server/bulkobjects Modified Files: psspell.cpp Log Message: - Casters cannot cast spells from realms higher than their skills. Index: psspell.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/server/bulkobjects/psspell.cpp,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** psspell.cpp 30 Oct 2004 13:50:48 -0000 1.58 --- psspell.cpp 30 Oct 2004 15:05:53 -0000 1.59 *************** *** 203,209 **** int mode = caster->GetCharacterData()->GetMode(); ! if (caster->GetCharacterData()->GetSkillRank(GetSkill()) == 0) { ! *castingText = "You have no knowledge of this magic way"; return NULL; } --- 203,209 ---- int mode = caster->GetCharacterData()->GetMode(); ! if (caster->GetCharacterData()->GetMaxRealm(GetSkill()) < realm) { ! *castingText = "You have insufficient knowledge of this magic way to cast this spell"; return NULL; } |