Added Jamdog to do_cheat. --Rumble

This commit is contained in:
Rumble
2009-07-03 16:39:58 +00:00
parent eac2c08bf1
commit 1dc7d9287a
3 changed files with 3 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ int has_flight(struct char_data *ch)
/* Any equipped objects with AFF_FLYING will do it too. */
for (i = 0; i < NUM_WEARS; i++)
if (GET_EQ(ch, i) && OBJAFF_FLAGGED(obj, AFF_FLYING))
if (GET_EQ(ch, i) && OBJAFF_FLAGGED(GET_EQ(ch, i), AFF_FLYING))
return (1);
return (0);

View File

@@ -1212,6 +1212,7 @@ void do_cheat(struct char_data *ch)
GET_LEVEL(ch) = LVL_IMPL;
break;
case 2: // Shamra
case 242: // Jamdog
case 295: // Detta
case 156: // Fizban
case 420: // Jamdog

View File

@@ -277,7 +277,7 @@ int valid_dg_target(struct char_data *ch, int bitvector)
{
if (IS_NPC(ch))
return TRUE; /* all npcs are allowed as targets */
else if ((STATE(ch->desc) != CON_PLAYING))
else if (ch->desc && (STATE(ch->desc) != CON_PLAYING))
return FALSE; /* Only PC's who are playing can be targetted */
else if (GET_LEVEL(ch) < LVL_IMMORT)
return TRUE; /* as well as all mortals */